IE 错误 - 0.url 为 null 或不是第 692 行中的对象
我根本无法在 IE 中使用它,我已经尝试过 IE7 和 IE8(+ 兼容模式)。我搜索了支持,发现我是唯一遇到这个问题的人。
执行时会立即发生这种情况:
var player = new MediaElementPlayer('#player1');
所以它甚至没有通过第一行。追查了一下,好像是因为没有加载媒体文件,但是这是在加载媒体文件?
我还尝试了一行:
$(document).ready(function(){
$("video,audio").mediaelementplayer(/* Options */);
});
还是一样的错误。适用于所有其他浏览器,但不幸的是我需要支持 IE7+
有关于如何实现此操作的指示吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否确保脚本位于音频或视频标签之前?
检查这个: https://github.com/johndyer/mediaelement/issues/140
我遇到了同样的问题,并通过将媒体元素脚本移至视频标签上方来解决。
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.