how to stream mp3 with MIDP2 mobile api

Started by
0 comments, last by shareme 19 years, 8 months ago
i have been trying to play a complete mp3 file about 2MB using MIDP2.0 but it only plays arround last 10 seconds. So i need to know how can stream the whole mp3 file and play it completly. this code is i am using to input mp3 file stream and making a player out of it: InputStream is = getClass().getResourceAsStream("5.mp3"); p = Manager.createPlayer(is, "audio/mpeg");
Advertisement
not sure how ..

but it must be possible..

in class asResourceStream?

you woudl still have to buffer the stream and synch player up with that..

This topic is closed to new replies.

Advertisement