开发者

IE Error - 0.url is null or not an object in line 692

I can't get this working in IE at all, I've tried IE7 and IE8(+ compat mode). I've searched the support, and see I'm the only person to have the problem.

This happens immediately when executing:

var player = new MediaElementPlayer(开发者_开发技巧'#player1');

So it's not even getting through the first line. Tracing it through, it seems to be because no media files are loaded, but this is loading the media files?

I also tried a single line:

$(document).ready(function(){
$("video,audio").mediaelementplayer(/* Options */);

});

still, same error. works in all other browsers, but unfortunately I need to support IE7+

Any pointers on how to get this going?


Did you make sure that the script is before the audio or video tags??

Check this: https://github.com/johndyer/mediaelement/issues/140

I faced the same issue and fixed by moving the media element script avobe the video tag.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜