Quicktime - Wmode 透明问题
在页面上嵌入 Quicktime 视频,作为 IE 系列浏览器(无 flash/html5)的优雅后备。我稍后有一个 div 覆盖视频,因此 Quicktime 嵌入必须是 wmode=透明。下面是嵌入代码:
<embed src="test.mp4" width="300" height="400" wmode="transparent" autoplay="true" scale="tofit" />
问题是:嵌入区域在加载 Quicktime 插件之前闪烁白色。嵌入成功完成,视频开始播放,但控制栏被白色遮挡。
有关如何解决此问题的任何想法? (更改 wmode 不是一个选项)。所有IE浏览器+FF3.6都会出现这种情况(未测试更高版本)。
谢谢。
Embedding a Quicktime video on a page as a graceful fallback for the IE family of browsers (no flash / html5). I have a div overlaying the video later on, so the Quicktime embed must be wmode=transparent. Below is the embed code:
<embed src="test.mp4" width="300" height="400" wmode="transparent" autoplay="true" scale="tofit" />
The problem is: the embed area flashes white before loading the quicktime plugin. Embed succesfully completes and video begins playing, the controlbar however is blocked out white.
Any ideas as how to fix this? (Changing wmode is not an option). This occurs in all IE browsers + FF3.6 (haven't tested higher versions).
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IE中播放器隐藏控制栏是因为
wmode="transparent"
。实时 示例,在所有版本的 IE(6/7/8 和 9)中进行测试,我看到相同的行为但是设置
wmode="opaque"
显示控制栏。实时示例,在所有版本的 IE(6/7/8 和 9)中进行测试并看到相同的行为。但wmode="opaque"
的问题是我们无法在播放器顶部显示任何覆盖层(dom 元素)。FF 3.6 与
wmode="transparent"
不显示任何内容,我的意思是播放器本身不可见。实时示例。但是使用
wmode="opaque"
一切正常,没有任何问题,我们也可以在播放器顶部覆盖。实时 示例在 Chrome 13 中使用
wmode="transparent"
一切正常。实时示例。但使用
wmode="opaque"
时,唯一的问题是我们无法在播放器顶部显示任何叠加层。现场 示例我认为这将使您充分了解大多数现代 Quicktime 播放器的问题与
wmode
和control bar
问题相关的浏览器。工作 演示
wmode="opaque"
并且还支持叠加。因此,对于 FF,您可能需要有条件地设置wmode
。使用 bgiframe 进行叠加的工作演示。
http://jsfiddle.net/Q3yBR/23/
The player hiding the control bar in IE is because of
wmode="transparent"
. Live example, tested in all versions of IE (6/7/8 and 9) and I saw the same behaviorHowever setting
wmode="opaque"
shows the control bar. Live example, tested in all versions of IE (6/7/8 and 9) and saw the same behavior. But the issue withwmode="opaque"
is we cannot show any overlay (dom element) on top of the player.FF 3.6 with
wmode="transparent"
do not show anything, I mean the player itself is not visible. Live example.But with
wmode="opaque"
everything works fine without any issue, we can have overlay also on top of the player. Live exampleIn Chrome 13 with
wmode="transparent"
everything works fine. Live example.But with
wmode="opaque"
the only issue is we cannot show any overlay on top of the player. Live exampleI think this will give you enough idea about the issues with Quicktime player across most of the modern browsers related to
wmode
andcontrol bar
problems.Working demo
wmode="opaque"
and also supports overlay. So for FF you might want to setwmode
conditionally.Working demo with bgiframe for overlay.
http://jsfiddle.net/Q3yBR/23/
将 16 添加到控制器的嵌入高度和/或 scale="aspect" 将根据文档解决您的问题。我没有较低的 IE 版本来测试,所以请告诉我。
adding 16 to your embed height for controller and/or scale="aspect" will solve your problem according to documents. I don't have lower IE version to test, so, pls let me know.