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:
$("#clip")[0].player.pause();
Everything works fine in Safari, Chrome and Firefox, but not in IE8.
The debugger says:
this.player is null or not an object.
This command also works in the other browsers but not in IE8:
$("#cl开发者_Python百科ip")[0].pause();
Any thoughts?
IE8 doesn't support html5 video tag
Can you give it a class, instead of an ID?
Maybe IE8 doesn't like the multiple ID's on the same page?
$(".clip")[0].player.pause();
精彩评论