On Wed, Aug 17, 2011 at 12:19 PM, lb <[email protected]> wrote:

> I tried couple from here and it worked for me but they are 3gp videos
> though.
>
> http://daily3gp.com/vids/family_guy_bill_cosby.3gp
> -lb
>
>
> On Aug 13, 7:23 am, Dmitry Kazakov <[email protected]> wrote:
> > Hi there.
> > I write Android app and I want to playing music from a remote URL via
> > HTTP streaming. In official tutorial is showed this code:
> >
> > 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();
> >
> > But I don't know what kind of URL I should use. I try to use
> > vorbis.com/music/Epoq-Lepidoptera.ogg from google tutorial: it correct
> > open in browser but when I have invoked setDataSource(url) I catch
> > java.io.IOException: setDataSource failed.: status=0x80000000. I
> > googled and find meaning of this error: file at which points the this
> > path is not valid.
> > Can you show me example of URL that I should use for playing music via
> > HTTP streaming?
>
> --
> 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



mediaPlayer.setDataSource(url);

here pass url through parse URI.parse(url)

-- 
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

Reply via email to