1

我发现,当您在视频中向前搜索或简单地将鼠标悬停在进度条上时,使用带有 flash 回退的 mp4 会导致 JQuery 中的内存不足错误。

我已经关闭了进度功能,这似乎解决了这个问题。关于为什么会发生这种情况的任何想法?它与 Flash 中的 mp4 流有关吗?

$('audio,video.default').mediaelementplayer({
    // enable debugger
    enablePluginDebug:false,
    // turned off progress
    features: ['playpause','current','duration','volume','fullscreen'],
    alwaysShowControls: true,
    // force iPad's native controls
    iPadUseNativeControls: true,
    // force iPhone's native controls
    iPhoneUseNativeControls: true,
    // force Android's native controls
    AndroidUseNativeControls: true,
    // turns keyboard support on and off for this instance
    enableKeyboard: false,
    // when this player starts, it will pause other players
    pauseOtherPlayers: true,
    // initial volume when the player starts
    startVolume: 0.8,
    // log error(s)
    error : function(mediaElement)
    {
        console.log('mediaelement problem is detected: '.mediaElement);
    }
});
4

0 回答 0