Youtube API Video Player

Before create app using YouTube Android Player API, you have to "Download and import YouTube Android Player API" and "Re...


Before create app using YouTube Android Player API, you have to "Download and import YouTube Android Player API" and "Register your app using YouTube Android Player API and obtain API Key".

* Download and import YouTube Android Player API

Step By Step Process.. Please follow it.

1) New Android Application Project

2) Download and Unzip the File in given URL - https://developers.google.com/youtube/android/player/downloads/

3) Copy the unzipped YouTubeAndroidPlayerApi.jar file to /libs folder in your project. The YouTubeAndroidPlayerApi.jar file should be in /libs sub-folder of your unzipped files.


4) Right click your android application project and then select Java Build Path and click Add jar's



5) Select YouTubeAndroidPlayerApi.jar, and click OK


* Register your app using YouTube Android Player API and obtain API Key

To use YouTube Android Player API in your app, you have to register it and obtain API key.

Login with your Google account in Google APIs Console.

a) Pull-down the Selection on left, and click Create... under Other Projects.

Android Application Project of YouTube Player


Gradle Code



XML Code:

In res File Create Two playerview_demo.xml Files One Vertical And One Horizontal To see the Video in Two Directions



The Vertical playerview_demo.xml Code :



The Horizontal playerview_demo.xml Code :

Java :


Extends The class file with YoutubeFailureActivity

Youtube Failure Activity code:


The Youtube Failure Activity is linked with Developer Key and also it has functionality of youtube player

Now the Developer Key File


Download the source code With some Live Channels Sample Link :

COMMENTS

Name

Android,9,Big Data,3,Cloud Apps,1,Database,1,Featured,12,Free Downloads,1,HowTo,1,IOT,7,Java,1,Linux,1,News,6,Products,1,SEO,1,TipsnTricks,5,Ubuntu,1,Unity3D,4,Windows Apps,1,
ltr
item
Tech Geek Bytes - A Blog For News, Tutorials, Free Source Code, Tips and Tricks: Youtube API Video Player
Youtube API Video Player
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoUMUvpnVRdxfzcmbG5Cp5re21UV0tSG9-UQfdJSSAS_5FWJwca-8LUW1MmqOph3wsxWwk1uKkj1l655j3VkzLuhtS9QYU3OWWjU5jLvhlLd88JMQmhd27pR2Ri4Cfl9SvYl1-zVaUg1U/s1600/main.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoUMUvpnVRdxfzcmbG5Cp5re21UV0tSG9-UQfdJSSAS_5FWJwca-8LUW1MmqOph3wsxWwk1uKkj1l655j3VkzLuhtS9QYU3OWWjU5jLvhlLd88JMQmhd27pR2Ri4Cfl9SvYl1-zVaUg1U/s72-c/main.png
Tech Geek Bytes - A Blog For News, Tutorials, Free Source Code, Tips and Tricks
https://techgeekbytes.blogspot.com/2017/08/youtube-video-player.html
https://techgeekbytes.blogspot.com/
https://techgeekbytes.blogspot.com/
https://techgeekbytes.blogspot.com/2017/08/youtube-video-player.html
true
8751912191394201619
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy