Mediaelement.js malfunction in IE, no flashback works

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

    Since your problem persists with your system only, there might be problem with either your setting or the flash player. Here are some things you may try:

    1. If you have any scripts running, try disabling those scripts and playing video again.
    2. If you have any secondary flash players such as "Gnash", try removing them.
    3. There is a slight possibility that your flassh player might be corrupted. Try re-installing it.
    4. If none of these work, try clearing cookies, cache, history.

    You can also, re-install your Internet Explorer and see if it works. All the best! :)

    0 讨论(0)
  • 2020-12-18 05:43

    Thanks a million for the investigative work and the solution — I ended up going with the slightly more separated code of

    var options = {...}
    
    /*@cc_on
      @if (@_jscript_version == 9)
        options.mode = 'shim';
      @end
    @*/
    
    $('video, audio').mediaelementplayer(options);
    
    0 讨论(0)
  • 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';
    
    0 讨论(0)
  • 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...
    
            }
    
    0 讨论(0)
提交回复
热议问题