2

Is it possible to implement a custom codec decoder and play a media file using JSR135? Actually I am interested in playing back a custom media file in J2ME. I think JSR135 is a good starting point but I am open to other suggestions. Thanks.

Update I have not tried but I believe, if I open the file using JSR75 I will get an InputStream. I can use a custom InputStream that converts the custom codec to a known codec that MMAPI will understand and I can playback. However it would be better if I can do without using JSR75 and many security warnings that will come with it.

sth
  • 222,467
  • 53
  • 283
  • 367
Szere Dyeri
  • 14,916
  • 11
  • 39
  • 42
  • where do you get the audio data from if not JSR75? in-Jar, RMS, HTTP? – michael aubert May 05 '09 at 11:22
  • MMAPI supports 3 factory methods to create a player. One of them is using a remote connection, one of them is providing an InputStream (jsr75 or in jar resource) or providing a file name. In case of providing a file name MMAPI opens and plays the file as it natively. I hope this answers your question. – Szere Dyeri May 05 '09 at 21:14
  • 1
    Even if you write the codec successfully, playing it on the device might not be possible on the device, as far as I know, J2ME does not provide sucn an interface – Prabhu R Jun 03 '09 at 09:01
  • It will be interesting to know if this is possible in J2ME. – Ajibola Jun 02 '13 at 21:05

0 Answers0