html 停止嵌入YouTube iframe?
问题描述:
我正在使用YouTube iframe将视频嵌入到我的网站中。
<iframe width="100%" height="443" class="yvideo" id="p1QgNF6J1h0" src="http://www.youtube.com/embed/p1QgNF6J1h0?rel=0&controls=0&hd=1&showinfo=0&enablejsapi=1" frameborder="0" allowfullscreen> </iframe>
我在同一页面上有多个视频。
我想使用javascript左右单击按钮来停止所有或其中之一。
可能吗?
更新:
我尝试了 Talvi Watia 所说的话并使用:
$('#myStopClickButton').click(function(){ $('.yvideo').each(function(){ $(this).stopVideo(); }); });
我越来越:
Uncaught TypeError: Object [object Object] has no method 'stopVideo'
在做webkitRequestFileSystem的window.PERSISTENT选择谷歌浏览器,在那里我的文件系统做文件获取写的?在构建和调试此应用时,我想将文件 ...