you can use this project to play any you tube video , in your android app . Now for other video , or Video id ... you can do this https://gdata.youtube.com/feeds/api/users/eminemvevo/uploads/ where eminemvevo = channel .
after finding , video id , you can put that id in cueVideo("video_id")
src -> com -> examples -> youtubeapidemo -> PlayerViewDemoActivity
@Override
public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player , boolean wasRestored) {
if (!wasRestored) {
player.cueVideo("wKJ9KzGQq0w");
}
}
And specially for reading that video_id in a better way open this , and it as a xml[1st_file
] file in your desktop after it create a new Xml file in your project
or upload that[1st_file
] saved file in your project , and right_click in it , and open it with xml_editor file , here you will find the video id of the particular video .