开发者

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

开发者 https://www.devze.com 2023-02-17 21:05 出处:网络
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.

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

精彩评论

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