Html Youtube iframe嵌入循环可在除IE9和IE10之外的所有浏览器中工作
这是我的HTMLHtml Youtube iframe嵌入循环可在除IE9和IE10之外的所有浏览器中工作,html,internet-explorer,youtube,Html,Internet Explorer,Youtube,这是我的HTML <iframe width="1425" height="613" src="http://www.youtube.com/embed/IHJ-djBr0Q0?autoplay=1&controls=0&loop=1&wmode=transparent&modestbranding=1&showinfo=0&playlist=IHJ-djBr0Q0" frameborder="
<iframe width="1425" height="613" src="http://www.youtube.com/embed/IHJ-djBr0Q0?autoplay=1&controls=0&loop=1&wmode=transparent&modestbranding=1&showinfo=0&playlist=IHJ-djBr0Q0" frameborder="0"></iframe>
除了IE9/10之外,它可以在每个浏览器上自动播放和循环。它在IE8中工作,因为它使用flash播放器。我不知道为什么IE11能工作,而9/10却不能。想法
注意:如果你安装了flash,我相信它会起作用,但我更希望他们使用HTML5播放器。我遇到了同样的问题,经过大量测试和谷歌搜索,我找不到原因。然后我尝试了很多方法让它工作,我发现删除iframe并将其重新插入DOM以及重新注册播放器都是有效的 这里有一个密码笔 请注意,顶部的var console=函数仅提供IE9/10注释,因为这些浏览器不喜欢像codepen这样的iFrame中的console.log