FlowPlayer - 添加 wmmode 后获取下载弹出链接:“opaque”
将 wmode: 'opaque' 添加到 FlowPlayer 后,我收到 FireFox 下载弹出窗口,询问我是否要保存 .flv 文件。视频实际上仍在播放。
我的标记:
<a href="command page.flv" style="display:block;width:254px;height:163px;" id="player"></a>
我的 FlowPlayer 脚本:
flowplayer("player", {src: '/swf/flowplayer.commercial-3.2.7.swf', wmode: 'opaque'}, {
plugins: {
controls: {
url: 'flowplayer.controls-3.2.5.swf',
autoHide: false,
buttonColor: 'rgba(0, 0, 0, 0.9)',
buttonOverColor: '#000000',
backgroundColor: '#FFFFFF',
backgroundGradient: 'medium',
height: '20px',
sliderColor: '#FFFFFF',
sliderBorder: '1px solid #808080',
volumeSliderColor: '#FFFFFF',
volumeBorder: '1px solid #808080',
// which buttons are visible and which are not?
play:true,
volume:true,
mute:true,
time:false,
stop:false,
playlist:false,
fullscreen:true,
timeColor: '#000000',
durationColor: '#535353'
}
},
logo: {
url: 'splash.jpg',
fullscreenOnly: false,
zIndex:0,
top: '44%',
left: '50%'
},
clip: {
// these two configuration variables does the trick
autoPlay: false,
autoBuffering: false
}
});
救命!
After adding the wmode: 'opaque' to the FlowPlayer, I'm getting the FireFox download popup and its asking me if I want to save the .flv file. The video actually still plays.
My markup:
<a href="command page.flv" style="display:block;width:254px;height:163px;" id="player"></a>
My FlowPlayer Script:
flowplayer("player", {src: '/swf/flowplayer.commercial-3.2.7.swf', wmode: 'opaque'}, {
plugins: {
controls: {
url: 'flowplayer.controls-3.2.5.swf',
autoHide: false,
buttonColor: 'rgba(0, 0, 0, 0.9)',
buttonOverColor: '#000000',
backgroundColor: '#FFFFFF',
backgroundGradient: 'medium',
height: '20px',
sliderColor: '#FFFFFF',
sliderBorder: '1px solid #808080',
volumeSliderColor: '#FFFFFF',
volumeBorder: '1px solid #808080',
// which buttons are visible and which are not?
play:true,
volume:true,
mute:true,
time:false,
stop:false,
playlist:false,
fullscreen:true,
timeColor: '#000000',
durationColor: '#535353'
}
},
logo: {
url: 'splash.jpg',
fullscreenOnly: false,
zIndex:0,
top: '44%',
left: '50%'
},
clip: {
// these two configuration variables does the trick
autoPlay: false,
autoBuffering: false
}
});
Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将标签更改为标签并解决了问题。
I changed the tag to a tag and that fixed the problem.