问题
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