Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.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
iframe-won';t嵌入YouTube频道';s最新视频(HTML)_Html_Iframe_Youtube - Fatal编程技术网

iframe-won';t嵌入YouTube频道';s最新视频(HTML)

iframe-won';t嵌入YouTube频道';s最新视频(HTML),html,iframe,youtube,Html,Iframe,Youtube,因此,我尝试将“我的”Youtube频道的最新视频嵌入iframe,代码如下: <iframe width="400" height="300" src="http://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=CHANNEL NAME" frameborder="0" allowfullscreen>&l

因此,我尝试将“我的”Youtube频道的最新视频嵌入iframe,代码如下:

<iframe width="400" height="300" src="http://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=CHANNEL NAME" frameborder="0" allowfullscreen></iframe> .

当我用频道名称(
UCy3amHVg1fS\u GBF8NSNlTAA
)替换
频道名称时,它会抛出一个错误-但是,当我用它替换像
pewdiepie
这样的东西时,它会完全正常工作。

它只适用于频道用户名,不使用通道ID。但您可以使用JavaScript使其工作

谢谢:)