In response to your comment on keyeslabs.com:

Yes, YouTube says we should use RTSP, but that doesn't work. Look at
their own YouTube implementation on Android, and you'll see that they
grab a mangled mp4 url, rather than rtsp (you can verify this by
looking at the logcat output while using YouTube player). Sure, this
will break at some point when YouTube changes its protocol, but for
now it's the best solution. RTSP fails in many situations on Android,
particularly when you're behind a firewall on WiFi and the server
can't communicate to the client. I went a long way down the RTSP road,
and ended up back here. Let me know if you find something different!

In any case, you're welcome to use the concepts in my impl to grab
your RTSP stream if that's the direction that you want to go.  You're
still going to need to get a token, etc., and all of that code is
available to you in my activity implementation.

dk

On Oct 13, 8:26 am, dadical <[email protected]> wrote:
> I've done this before.  I blogged about it 
> here:http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-an....
> There is source code in the blog entry.  Enjoy!
>
> Dave
>
> On Oct 13, 7:28 am, furby <[email protected]> wrote:
>
>
>
> > Anybody?
>
> > On Oct 13, 8:09 am, furby <[email protected]> wrote:
>
> > > I am sure that this has been discussed before... But I don't seem to
> > > be really grokking it...
>
> > > I have a videoview called "tv1" on a form.
> > > I have a bit of code that fires when a button is pressed that looks
> > > like this :
> > >                 String uristr = "rtsp://rtsp.youtube.com/youtube/
> > > videos/S2eoCqwBCQI/video.3gp";
> > >                 tv1.setVideoURI(Uri.parse(uristr));
> > >                 tv1.start();
>
> > > The emulator tells me that "This video cannot be displayed" and if I
> > > try it on my phone, the app just crashes...
>
> > > Does anyone know what I am doing wrong here?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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