YouTube API - 获取下一个相关视频 [英] YouTube API - get next related video
问题描述
我正在建立一个无障碍网站,供残疾学生独立观看YouTube。目前使用jsapi来控制播放器(播放/暂停/音量),但我需要为NEXT相关视频创建链接。
I'm building an accessible site for disabled students to watch YouTube independently. Currently using jsapi to control the player (play/pause/volume) but I need to create a link for the NEXT related video.
是否有方法可以获取链接YouTube声明的下一个视频的/视频ID,以使此屏幕阅读器友好。
Is there a method to get the link/video ID for the video that YouTube states is 'up next' to make this screen reader friendly.
注意:这不是使用播放列表 - 因此它是YouTube的链接决定是下一个相关的
note: this is not using playlists - so it's the link that YouTube decides is the next related one
谢谢,迈克
推荐答案
< a href =http://code.google.com/apis/youtube/2.0/reference.html#Related_videos_feed =nofollow> http://code.google.com/apis/youtube/2.0/reference。 html#Related_videos_feed
这是查找特定视频的相关视频的Feed。您应该可以使用此Feed进行连续游戏。
This is the feed to find the "related" video for a specific video. You should be able to do continuous play using this feed.
这篇关于YouTube API - 获取下一个相关视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!