Javascript MediaElement播放器“;“成功”;没有执行回调,可能是;完";如果使用闪存回退,则不会触发事件

Javascript MediaElement播放器“;“成功”;没有执行回调,可能是;完";如果使用闪存回退,则不会触发事件,javascript,jquery,flash,internet-explorer,mediaelement.js,Javascript,Jquery,Flash,Internet Explorer,Mediaelement.js,我使用以下代码嵌入视频: $('#trailer-dialog').mediaelementplayer({ enablePluginDebug: false, // remove or reorder to change plugin priority plugins: ['flash','silverlight'], // specify to force MediaElement to use a particular vid

我使用以下代码嵌入视频:

$('#trailer-dialog').mediaelementplayer({
        enablePluginDebug: false,
        // remove or reorder to change plugin priority
        plugins: ['flash','silverlight'],
        // specify to force MediaElement to use a particular video or audio type
        type: '',
        // path to Flash and Silverlight plugins
        pluginPath: '/build/',
        // name of flash file
        flashName: 'flashmediaelement.swf',
        // name of silverlight file
        silverlightName: 'silverlightmediaelement.xap',
        // default if the <video width> is not specified
        defaultVideoWidth: 1240,
        // default if the <video height> is not specified    
        defaultVideoHeight: 679,
        // overrides <video width>
        pluginWidth: -1,
        // overrides <video height>      
        pluginHeight: -1,
        // rate in milliseconds for Flash and Silverlight to fire the timeupdate event
        // larger number is less accurate, but less strain on plugin->JavaScript bridge
        timerRate: 250,
        success: function (mediaElement, domObject) {

            // add event listener
            mediaElement.addEventListener('ended', trailerEnded, false);

            // call the play method
            mediaElement.play();

        },
        // fires when a problem is detected
        error: function () {

        }

    });
它是在能够显示htm5视频的浏览器中执行的。但在IE6-8中,使用闪存回退功能是不起作用的

有办法解决这个问题吗

谢谢


lukas

升级你的mediaelementjs版本-最新版本为我解决了这个问题。

我在2.9.5版上仍然存在问题,在2.18.1版上仍然存在问题。但我确实在以前的网站上使用过它。有人解决了这个问题吗?
function trailerEnded(e){
    e.target.stop();
    $.cookie('trailer_played', 'true');
    $('#wrapper').css('display', 'block');
    $('#trailer').css('display', 'none');
    alert('test');
}