首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >隐藏FullScreen MediaElement

隐藏FullScreen MediaElement
EN

Stack Overflow用户
提问于 2012-09-18 05:11:47
回答 2查看 2.2K关注 0票数 1

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

有什么简单的方法可以自定义Flash视频控件吗?

EN

回答 2

Stack Overflow用户

发布于 2012-09-18 08:36:34

如何从功能配置参数中删除fullscreen

代码语言:javascript
运行
复制
features: ['playpause','progress','current','duration','tracks','volume']

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

票数 0
EN

Stack Overflow用户

发布于 2013-08-07 01:58:14

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

代码语言:javascript
运行
复制
$('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
    //...
});
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12467169

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档