Are you sure that the audio file on the server is being streamed? On 18 Oct 2011 15:09, "Sunil Mishra" <[email protected]> wrote:
> Hi, > > I am trying to play a audio mp3 file which is stored on web > > String url = "http://........"; // your URL here > MediaPlayer mediaPlayer = new MediaPlayer(); > mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); > mediaPlayer.setDataSource(url); > mediaPlayer.prepare(); // might take long! (for buffering, etc) > mediaPlayer.start(); > > i am not able to play the content, can anyone help me out > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" 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-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

