admin管理员组文章数量:1415644
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.
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.
note: this is not using playlists - so it's the link that YouTube decides is the next related one
Thanks, Mike
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.
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.
note: this is not using playlists - so it's the link that YouTube decides is the next related one
Thanks, Mike
Share Improve this question asked Apr 13, 2011 at 14:59 Mike ThrussellMike Thrussell 4,5259 gold badges46 silver badges62 bronze badges3 Answers
Reset to default 3http://code.google./apis/youtube/2.0/reference.html#Related_videos_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.
curl "http://gdata.youtube./feeds/api/videos/DZtvQeW3aR8/related?v=2&alt=jsonc"
where DZtvQeW3aR8 is the videoid
As YouTube API v2.0 got deprecated you can now use this v3.0 method to get the same functionality:
https://developers.google./youtube/v3/guides/implementation/videos#videos-retrieve-related-videos
本文标签: javascriptYouTube APIget next related videoStack Overflow
版权声明:本文标题:javascript - YouTube API - get next related video - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745169101a2645862.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论