Hello,
For playing YouTube video, I've wrote in empty project:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("http://www.youtube.com/embed/VIDEO_ID"));
this.startActivity(intent);
So, after running this code, i see that new browser window is opened with
full screen youtube player in it.
After pushing on a play button, which is placed in the center of this embed
youtube player, the native android player is opened,
and video starts playing...
At this point, I'm very curious, how does the YouTube embed player in a
browser window manage to open android native player?
And what should be URL looks like, and may be additional actions, which will
allow, having in hands VIDEO_ID only,
to run YouTube video in a Native Android video player.
Thanks
--
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