如何在flash-video控制面板中隐藏全屏选项?我的flash版本可以在IE 7-8和Safari中播放。对于使用其他格式的浏览器,我可以删除全屏按钮,没有问题。我尝试在我的object
标记中使用<param name="allowfullscreen" value="false" />
,但没有任何效果。
有什么简单的方法可以自定义Flash视频控件吗?
发布于 2012-09-18 08:36:34
如何从功能配置参数中删除fullscreen
:
features: ['playpause','progress','current','duration','tracks','volume']
请参阅http://mediaelementjs.com/上的第4节
发布于 2013-08-07 01:58:14
您可以在启动播放器时检查浏览器版本,并在媒体元素播放器配置中显示/隐藏全屏图标。
$('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
//...
});
https://stackoverflow.com/questions/12467169
复制相似问题