开发者

youtube api for java/android, how to get started?

开发者 https://www.devze.com 2023-03-24 07:18 出处:网络
I\'m trying to get started with youtube api for android... downloaded and imported the libraries so far, but wasn\'t able to find my code snippets.

I'm trying to get started with youtube api for android... downloaded and imported the libraries so far, but wasn't able to find my code snippets.

Maybe you could suggest some simple ones, for example how execute a search query to youtube and get ba开发者_运维问答ck the list of results? or something like that...

Thanks!


youtube have no specific API for Android. You can use java api for youtube.


At the google IO of this year (2012) they announced the youtube api for Android apps, it isn't available yet, but it is going to be available soon, see the video here:


Now it's available. You can download it from here : YouTube Android API


Just posted a new tutorial video on how to utilize the YouTube player and thumbnail in the YouTube for Android API. The blog post with all the source code is here


YouTube provides API to embed video into your Android application. You need to download YouTube API support library.

Fist step is to obtain Google API key from Developers Console.

Add YouTubePlayerView to your layout files and initialize it in your src file with API key generated for your application. After successful intialization of YouTubePlayerView, you will get object of YouTubePlayer which you can use to cue or control video.

You can check detailed step by step tutorial at

http://androidsrc.net/youtube-android-player-api-v1-2-1-embed-video-in-your-android-application/


Follow this tutorial: http://createdineden.com/blog/2015/may/12/android-tutorial-how-to-integrate-youtube-videos-into-your-app/ Hope it helps

0

精彩评论

暂无评论...
验证码 换一张
取 消