UMAR UMAR - 13 days ago 5
Android Question

Displaying Youtube Videos From Specific Channel

I have created a youtube channel and uploaded few videos there. Channel is public, now i want to display those all uploaded videos in my android app through channel URL which is: https://www.youtube.com/channel/UCjD0Dhs3o7UiUQdZpSBADAA

I have also done some research but i am getting tutorial to display videos by hardcoded ids not from channel for example: https://github.com/youtube/yt-android-player

Any one guide me is it possible? i would really appreciate your help in matter.

Thank You!

Answer

After reading different Youtube apis i found following steps to consume Youtube Channel Videos in your Android app.

1) Create an application in your Google Account 2) Enable youtube services 3) and then you will get developer key

use that developer key to make api calls.

4)

String url = "https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics&id=UCjD0Dhs3o7UiUQdZpSBADAA&key=" + DeveloperKey.DEVELOPER_KEY;

Use cannel id in above URL along with developer key to get list of videos under your channel.

5) You will get basic information of each video but still you cannot play that video in your android video player in order to do that you must have RTSP url

and that url you can obtain by passing video id to http://gdata.youtube.com/feeds/mobile/videos/1FJHYqE0RDg

That's all.