Intent To Play Youtube Playlist
I would like to start YouTube playlist from my application. For single video this is obvious startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse('http
Solution 1:
Check whether you are passing same url throughout the play list (http://www.youtube.com/watch?v=videoid). check for the value of videoid whether it is same.
Solution 2:
The best way to use YouTube functionalities in your app is to use YouTube API for Android. You can find out how to use YouTube API from the documentation and the sample app.
If you use YouTube API, to start playlist you have to do this in your Activity:
StringPLAYLIST_ID="UCVHFbqXqoYvEWM1Ddxl0QDg";
//"this" is ContextIntentintent= YouTubeIntents.createPlayPlaylistIntent(this, PLAYLIST_ID);
startActivity(intent);
See the method's documentation here.
Post a Comment for "Intent To Play Youtube Playlist"