[英]Why does VideoJS's $(“#video”)[0].player.pause() break in IE8?
I'm trying to control the play and pause function an HTML5 video using the VideoJS plugin and the following command: 我正在尝试使用VideoJS插件和以下命令来控制HTML5视频的播放和暂停功能:
$("#clip")[0].player.pause();
Everything works fine in Safari, Chrome and Firefox, but not in IE8. 一切都可以在Safari,Chrome和Firefox中正常运行,但在IE8中却不能。
The debugger says: 调试器说:
this.player is null or not an object. this.player为null或不是对象。
This command also works in the other browsers but not in IE8: 此命令也可在其他浏览器中使用,但不适用于IE8:
$("#clip")[0].pause();
Any thoughts? 有什么想法吗?
IE8不支持html5视频标签
Can you give it a class, instead of an ID? 您可以给它一个类而不是ID吗?
Maybe IE8 doesn't like the multiple ID's on the same page? 也许IE8不喜欢同一页面上的多个ID?
$(".clip")[0].player.pause();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.