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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745169101a4614813.html
评论列表(0条)