0

Possible Duplicate:
Android YouTube app Play Video Intent

I'm trying to show a YouTube video in my Android app. I'm not too particular how, just that it works. I have some data from using the Google YouTube API, but I don't know how to use it or what fields are important to my task.

I see some other postings suggesting I create an Intent. I've tried that multiple ways, but it never shows, either on my emulator or my phone. I also tried creating a VideoView in my own activity, but the same result, it simply comes back and says it can't show the video.

I can guess I'm using the wrong URL format, but I can't tell what it should look like. All the examples I find either don't work, or are incomplete.

Does anyone have a simple example with a complete and hard coded URL that should work?

Isn't there a way to play a YouTube video on Android?

Community
  • 1
  • 1
Mitch
  • 1,706
  • 3
  • 25
  • 39
  • Tried that one, it's one of the ones that doesn't work. I suspect this one used to work, but YouTube changed the Intent. I posted a comment on that thread already. – Mitch Mar 21 '12 at 20:42
  • Some examples show rtsp and some http, ??? I'm guessing I have the wrong URL from the API, but I really don't know what's expected. – Mitch Mar 22 '12 at 00:10
  • If you don't feel that this is a duplicate of the question linked to, then you should make your case here through a ping instead of a snarky comment on one of my posts. That said, if can show it's *not* a duplicate and that the other answers on *that* question don't help you, then we can reopen it. Or, you can take it up on http://meta.stackoverflow.com – casperOne Mar 24 '12 at 22:52

0 Answers0