Closed aminalzanki closed 10 years ago
PLAYLIST_KEY is probably poorly named. It should be EXTRA_PLAYTLIST_KEY or something like that. This static string is only used as the key in the saved instance bundle for the serialized playlist object. You do not ever need to change the value of PLAYLIST_KEY.
Now if you are asking about the sample YOUTUBE_PLAYLIST value I provided in YouTubeFragment: private static final String YOUTUBE_PLAYLIST = "PLWz5rJ2EKKc_XOgcRukSoKKjewFJZrKV0"; You can use any youtube playlist id. See the following URL on how to create your own youtube playlist. https://www.youtube.com/yt/playbook/playlists.html#details
Or if you want to use an existing playlist, then grab it out of the youtube url in your browser while navigating youtube.com
For example: https://www.youtube.com/watch?v=AuoNetDUOnE&list=PLABD4902F767000CF The playlist id is: PLABD4902F767000CF
Thanks @akoscz for the response. I used your playlist as in the code and changed dedicated API, but i'm getting blank white screen and not showing the playlist. Is there any settings need to change to make it running perfectly?
May I know how to get PLAYLIST_KEY in YoutubeFragment.java ?