如何隐藏闪视视频控制面板中的全屏选项?我在IE 7-8和Safari中播放的Flash版本。我可以删除使用其他格式的浏览器的全屏按钮,没问题。我尝试在<param name="allowfullscreen" value="false" />
标记中使用object
,但没有效果。
是否有任何简单的方法可以自定义Flash视频控件。
答案 0 :(得分:0)
如何从功能配置参数中删除fullscreen
:
features: ['playpause','progress','current','duration','tracks','volume']
第4节
答案 1 :(得分: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
//...
});