问题描述
我有code在android.But整合YouTube视频我想要的是创建一个列表视图,其中列出不同的渠道,当用户渠道点击它表明channel.By的所有视频这种方式时,新的视频是在一个通道加载它会自动在我的应用程序提供also..Is可以集成在Android的YouTube频道?
是的!检查出的Android YouTube播放器API和YouTube API。
Android的播放器:
YouTube的API:
YouTube播放器API演示应用程序:
<一href=\"https://$c$c.google.com/p/youtube-api-samples/source/browse/#git%2Fandroid-player%2Fsrc%2Fcom%2Fexamples%2Fyoutubeapidemo\" rel=\"nofollow\">https://$c$c.google.com/p/youtube-api-samples/source/browse/#git%2Fandroid-player%2Fsrc%2Fcom%2Fexamples%2Fyoutubeapidemo
修改
数据API,可以让你在一个通道中获取的视频信息,然后可以使用这些信息来构建你的视频列表,并相应更新。
例如,下面就从通道检索最新视频:
<$p$p><$c$c>https://www.googleapis.com/youtube/v3/search?key={your_key_here}&channelId={channel_id_here}&part=snippet,id&order=date&maxResults=20
祝您好运!
I have the code for integrating youtube video in android.But what i want is to create a listview which lists different channels and when user click on channels it shows all the videos of that channel.By this way when a new video is loaded in a channel it will be automatically be available in my app also..Is it possible to integrate youtube channel in android?
Yes! Check out the Android Youtube Player API and the YouTube API.
Android Player:https://developers.google.com/youtube/android/player/
YouTube API:https://developers.google.com/youtube/
YouTube Player API Demo App:https://code.google.com/p/youtube-api-samples/source/browse/#git%2Fandroid-player%2Fsrc%2Fcom%2Fexamples%2Fyoutubeapidemo
EDIT
The Data API lets you get information about videos in a channel, you can then use that info to construct your list of videos and update it accordingly.
For example, the following would retrieve 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!
这篇关于是否有可能YouTube频道在android系统集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!