Mediaelement.js malfunction in IE, no flashback works

前端 未结 4 1074
天命终不由人
天命终不由人 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:57

    I had the same problem and found an undocumented feature in another post: mode:shim ~ not sure of what its doing, specifically, but it seems to force all browsers to fall back on to flash.

    Since chrome, ios, et al were working properly with html5 video, I used conditional comments to specify IE9 and force the fall back (flash or silverlight):

            var player = new MediaElementPlayer('video', {
    /*@cc_on
    @if (@_jscript_version == 9)
                mode: 'shim',
    @end
    @*/
                // remove or reorder to change plugin priority
                plugins: ['flash','silverlight'],
    
                // etc...
    
            }
    

提交回复
热议问题