Skip to content Skip to sidebar Skip to footer

Play Videos From My Youtube Channel In Android

I am making an application where I need to list the playlists of a corresponding YouTube channel. I have a working YouTube player. Now what I need is to get the list of playlists o

Solution 1:

This question is very old, however it will helpful for those developers who is looking for youtube channel integration in Android App. I am presenting a rough idea. You can follow this tutorial Youtube channel integration in Android Follow these steps:-

  1. Find youtube channel id.
  2. Genrete SHA1 key
  3. Get API Key for Youtube Data API v3 and paste SHA1 key in restriction of use
  4. Get Channel video list and description with thumbnail image in JSON format from this link by clicking on Load in APIs Explorer. Put your channel id in ChannelId textfield you will get JSON format data of videos.
  5. Add internet permission in AndroidManifest file.
  6. Download the YoutubePlayerApi.jar file in your library of Android projects and volley library in build.gradle file.
  7. Create a Channel Activity and use JSON parsing to parse the Video list.
  8. Pass the videoId from yourAdapter to another Activity by intent.putExtra().
  9. Get the videoId in another Activity by getExtra().
  10. show video by using cueVideo().

Solution 2:

You can use the you tube API for example to get a playlist

http://gdata.youtube.com/feeds/api/playlists/PLAYLIST_ID

Post a Comment for "Play Videos From My Youtube Channel In Android"