I am trying to transfer mp3 via http using the Android built in MediaPlayer class. The documentation will tell me that this should be as simple as:
MediaPlayer mp = new MediaPlayer(); mp.setDataSource(URL_OF_FILE); mp.prepare(); mp.start();
However, I repeatedly get the following. I also tried different urls. Please do not tell me that streaming does not work on mp3.
E/PlayerDriver( 31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported W/PlayerDriver( 31): PVMFInfoErrorHandlingComplete E/MediaPlayer( 198): error (1, -4) E/MediaPlayer( 198): start called in state 0 E/MediaPlayer( 198): error (-38, 0) E/MediaPlayer( 198): Error (1,-4) E/MediaPlayer( 198): Error (-38,0)
Any help is much appreciated, thanks S
android mp3 android-mediaplayer audio-streaming
Pandalover Dec 27 '09 at 11:40 2009-12-27 11:40
source share