androidyoutubeyoutube-data-apiyoutube-channels

Is it possible to integrate youtube channel in android?


I have the code for integrating YouTube videos in android.

What I want is to create a listview which lists different channels, and when user clicks on a channel it shows all the videos for that channel. By this way when a new video is loaded in a channel it will automatically be available in my app also.

Is it possible to integrate YouTube channel in android?


Solution

  • Yes! Check out the Android Youtube Player API and the YouTube API.

    Android Player: https://developers.google.com/youtube/android/player/

    YouTube API: https://developers.google.com/youtube/

    YouTube Player API Sample: (sample folder in zip) https://developers.google.com/youtube/android/player/downloads/

    EDIT

    The Data API lets you get information about videos in a channel, you can then use that info to construct your list of videos and update it accordingly.

    For example, the following would retrieve the latest videos from a channel:

    https://www.googleapis.com/youtube/v3/search?key={your_key_here}&channelId={channel_id_here}&part=snippet,id&order=date&maxResults=20
    

    https://developers.google.com/youtube/v3/

    Good Luck!