video is not playing in IE8 by mediaelement.js

安稳与你 提交于 2020-01-03 05:33:12

问题


I am not able to play video in IE8 by using mediaelementjs.

I am using HTML5 video tag and I want the video to be played in IE8 and below browsers.

I know that IE8 doesn't support HTML5 video tag.Hence I am implementing mediaelement.js to make the video play in IE8.

Can anyone tell me how to make the video play in IE8 using mediaelement.js(HTML5 video tag)?


回答1:


I guess something's wrong with your <script> tag. IE takes HTML errors more seriously, if you forgot to close it / forgot type="text/javascript" and you chose for example XHTML 1.0 STRICT doctype, mediaelement.js can not be used. Or you can also have an error elsewhere of course, but we can't identify that for you unless showing us some code.




回答2:


I also had this Issue. The position didnt do the Trick fist. I changed the according Javascript

$('audio,video').mediaelementplayer({
    success: function(player, node) {
        $('#' + node.id + '-mode').html('mode: ' + player.pluginType);
    }
});

to

jQuery('audio,video').mediaelementplayer({
    success: function(player, node) {
        $('#' + node.id + '-mode').html('mode: ' + player.pluginType);
    }
});

Then change position: static; and it works



来源:https://stackoverflow.com/questions/17854319/video-is-not-playing-in-ie8-by-mediaelement-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!