javascript - YouTube API - get next related video - Stack Overflow

I'm building an accessible site for disabled students to watch YouTube independently. Currently us

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 badges
Add a ment  | 

3 Answers 3

Reset to default 3

http://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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745169101a4614813.html

相关推荐

  • javascript - YouTube API - get next related video - Stack Overflow

    I'm building an accessible site for disabled students to watch YouTube independently. Currently us

    7小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信