duanduo7400 2013-05-09 09:29
浏览 87

有没有办法为YouTube播放列表中的每个视频生成单独的YouTube嵌入?

I know how to embed a playlist from YouTube in one player, for example by using the playlist ID in the code below:

<iframe id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed/?listType=playlist&list=PL3E6E572E46617B55" frameborder="0" allowfullscreen>

I want a section on my website that pulls each video from a YouTube playlist and makes a separate single video YouTube embed for each video, instead of playing each video consecutively in one player. Is this possible? How would I utilize the API to go about doing this?

  • 写回答

1条回答 默认 最新

  • dregvw1801 2013-05-09 18:30
    关注

    You need to use the YouTube Data API to get each video from the playlist:

    https://developers.google.com/youtube/v3/docs/playlistItems/list

    And the YouTube Player API to create a Video Player for each video that you want to show in your web page:

    https://developers.google.com/youtube/iframe_api_reference

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度