1

如何从 Flash 视频控制面板隐藏全屏选项?我在 IE 7-8 和 Safari 中播放的 flash 版本。我可以删除使用其他格式的浏览器的全屏按钮,没问题。我试过<param name="allowfullscreen" value="false" />在我的object标签内使用,但没有效果。

是否有任何简单的方法来自定义 Flash 视频控件。

4

2 回答 2

0

您可以在启动播放器时检查浏览器版本并在 mediaelement 播放器配置中显示/隐藏全屏图标。

$('video, audio').mediaelementplayer({
    // if the <video width> is not specified, this is the default
    defaultVideoWidth: 480,
    // if the <video height> is not specified, this is the default
    defaultVideoHeight: 270,
    // if set, overrides <video width>
    videoWidth: -1,
    // if set, overrides <video height>
    videoHeight: -1,
    // width of audio player
    audioWidth: 30,
    // height of audio player
    audioHeight: 400,
    // initial volume when the player starts
    startVolume: 0.8,
    // useful for <audio> player loops
    loop: false,
    // enables Flash and Silverlight to resize to content size
    enableAutosize: false,
    // the order of controls you want on the control bar (and other plugins below)
    //We are not showing "fullscreen" control in IE8 or lower as it does not work in IE8
    features: ( navigator.appVersion.indexOf('MSIE 8.0') > 0 || navigator.appVersion.indexOf('MSIE 7.0') > 0) ? ["playpause", "progress", "current", "duration", "tracks", "volume"] : ["playpause", "progress", "current", "duration", "tracks", "volume", "fullscreen"],

    //...
    //Other configurations go here
    //...
});
于 2013-08-06T17:58:14.123 回答
0

fullscreen从功能配置参数中删除怎么样:

features: ['playpause','progress','current','duration','tracks','volume']

请参阅http://mediaelementjs.com/上的第 4 节

于 2012-09-18T00:36:34.427 回答