Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Video 如何在嵌入式Youtube播放列表上显示视频列表?_Video_Youtube_Youtube Api_Youtube Javascript Api - Fatal编程技术网

Video 如何在嵌入式Youtube播放列表上显示视频列表?

Video 如何在嵌入式Youtube播放列表上显示视频列表?,video,youtube,youtube-api,youtube-javascript-api,Video,Youtube,Youtube Api,Youtube Javascript Api,我只想在我的网站中嵌入一个Youtube播放列表,同时允许用户从播放列表中选择他们想要观看的视频。(显示播放列表按钮) 试用版#1: <iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY?version=3&showinfo=1" frameborder="0" allowfullscreen></iframe> <iframe width="1280

我只想在我的网站中嵌入一个Youtube播放列表,同时允许用户从播放列表中选择他们想要观看的视频。(显示播放列表按钮)

试用版#1:

<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY?version=3&showinfo=1" frameborder="0" allowfullscreen></iframe>
<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY" frameborder="0" allowfullscreen></iframe>
<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY?showinfo=1" frameborder="0" allowfullscreen></iframe>

试用版#2:

<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY?version=3&showinfo=1" frameborder="0" allowfullscreen></iframe>
<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY" frameborder="0" allowfullscreen></iframe>
<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY?showinfo=1" frameborder="0" allowfullscreen></iframe>

试用版#3:

<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY?version=3&showinfo=1" frameborder="0" allowfullscreen></iframe>
<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY" frameborder="0" allowfullscreen></iframe>
<iframe width="1280" height="720" src="http://www.youtube.com/embed/WanDvtvv_xY?showinfo=1" frameborder="0" allowfullscreen></iframe>


上述代码似乎都不起作用

解决方案如下:

list=[list ID]
必须添加到嵌入代码中