嵌入式YouTube视频不在Google Chrome中播放



我使用YouTube提供的IFRAME标签将YouTube视频嵌入了HTML文件中。视频缩略图在页面上加载,但单击播放后,出现错误消息"不可用"

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Youtube video</title>
    </head>
    <body>
            <iframe width="560" height="315" 
            src="https://www.youtube.com/embed/kw4tT7SCmaY" 
            frameborder="0" 
            allow="accelerometer; autoplay; encrypted-media; 
            gyroscope; picture-in-picture" 
            allowfullscreen>
            </iframe>     
    </body>
</html>

YouTube中有一个规则。您无法嵌入任何频道视频。因此,您试图嵌入T系列和T系列的视频,不允许其他人嵌入其中的视频。

最新更新