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 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

本文标签: javascriptYouTube APIget next related videoStack Overflow