Mediaelement.js malfunction in IE, no flashback works

前端 未结 4 1079
天命终不由人
天命终不由人 2020-12-18 05:26

I used the mediaelement.js in my site, I used for the example a .mp4 file with H.264 codec, works well in all browsers, but it doesn\'t works in any version of

4条回答
  •  感动是毒
    2020-12-18 05:45

    Just putting it here so other people see it, I tried using this code

    /*@cc_on
    @if (@_jscript_version == 9)
                mode: 'shim',
    @end
    @*/
    

    And I ended up having issues in Internet Explorer 9, it seems that the browser was making an other instance of my video that played over everything else and that I couldn't control at all. I ended up going with this instead.

    if($.browser.msie && ($.browser.version == '8.0' || $.browser.version
    == '7.0'))
            options.mode = 'shim';
    

提交回复
热议问题