Hello All:
I don't have a clear example of playing audio from remote server.
My code is as follows:
mMp = new MediaPlayer();
if (mMp == null) {
Log.d(TAG, "Mediaplayer creation returns null");
}
mMp.setDataSource(url);
//mMp.setAudioStreamType(AudioManager.STREAM_MUSIC);
mMp.prepare();
mMp.start();
I get an error D/QuestionnaireDisp( 4858): exception in playAudio:
java.io.IOException: Prepare
failed.: status=0xFFFFFFFF
I guess the setDataSource(url); has a problem. However, the URL is a
standard
http based url for an audio file (3gp) that I can download using a browser.
I could use some working example of audio download and playback using
MediaPlayer.
Any recommendation will be appreciated.
Thanks
Bindu Rama Rao
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---