Is it possible to integrate youtube channel in android?

I have a code to integrate YouTube videos into Android.

What I want to create listview

is which lists the various channels and when the user clicks on a channel it shows all the videos for that channel. This way, when a new video is uploaded to a channel, it will also be automatically available in my application.

Is it possible to integrate YouTube channel into Android?

+3


source to share


2 answers


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

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

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

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

EDIT



The data API allows you to get information about a video in a channel, then you can use that information to build your video list and update it accordingly.

For example, the following will fetch 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!

+5


source


How to play whatever you use in your app and search for videos in any kind in the search bar as well as other format like mp4 mp3 selection according to user, Anyone knows how to do this.



0


source







All Articles