akoscz / YouTubePlaylist

A sample Android application which demonstrates the use of the YouTube Data v3 API.
Apache License 2.0
153 stars 84 forks source link

PLAYLIST_KEY #1

Closed aminalzanki closed 10 years ago

aminalzanki commented 10 years ago

May I know how to get PLAYLIST_KEY in YoutubeFragment.java ?

akoscz commented 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.

akoscz commented 10 years ago

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

aminalzanki commented 10 years ago

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?