YouTube API - 获取下一个相关视频 [英] YouTube API - get next related video

查看:37
本文介绍了YouTube API - 获取下一个相关视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个可访问的网站,供残疾学生独立观看 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

谢谢,迈克

推荐答案

http://code.google.com/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.

这篇关于YouTube API - 获取下一个相关视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆