html5媒体与Flowplayer wmode 问题
我正在开发我们的新主页,需要实现一个能够在 iPhone/iPad 和标准网络浏览器上运行视频的解决方案。我找到了一个相当不错的 html5media 解决方案 - http://code.google.com/p/html5media/ 但遇到了 jquery 下拉菜单落后于 swf 对象的问题(这只发生在 FF 和 IE 上 - 在 Safari 和 Chrome 上工作正常,因为它加载的是 mp4 而不是 swf 对象)。
我知道问题是 wmode 设置,但我一生都无法弄清楚在 html5media 中的何处设置它(http://html5media.googlecode.com/svn/trunk/src/html5media.min.js)。
我希望有人可以帮助我,或者可能给我一个更好的实现视频的解决方案。您可以在 idssite(dot)com/development/index.php 上查看开发页面 - 抱歉,我无法链接,我正被垃圾邮件预防机制阻止。
谢谢
I'm working on our new homepage and need to implement a solution that will run a video across iphone/ipad and the standard web browsers. I found a pretty decent solution with html5media - http://code.google.com/p/html5media/ but ran across an issue with a jquery dropdown falling behind the the swf object (this only happens on FF & IE - works fine on Safari & Chrome because it's loading mp4 instead of a swf object).
I know the issue is the wmode setting but can not for the life of me figure out where to set it in the html5media (http://html5media.googlecode.com/svn/trunk/src/html5media.min.js).
I'm hoping someone can help me or possibly give me a better solution of implementing the video. You can see the development page at idssite(dot)com/development/index.php - Sorry I can't link I'm being stopped by the spam prevention mechanism.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如何将 wmode = 透明参数传递到 Flowplayer:
Flowplayer 在嵌入调用中需要三个参数。
1) 容器ID
2)参数。 (字符串或对象)
3) 配置(插件或外观设置)
更多详细信息:http://flowplayer.org/documentation/api /flowplayer.html
wmode 参数必须通过第二个参数传递。如果它是一个字符串,Flowplayer 期望它是 Flash 播放器的 URL。要传递附加参数,必须以 JSON 对象的形式完成。
无 wmode:
有 wmode:
How to pass the wmode = transparent parameter into Flowplayer:
Flowplayer expects three arguments in the embed call.
1) Container ID
2) Parameters. (string or object)
3) Configuration (plugins or appearance settings)
More details: http://flowplayer.org/documentation/api/flowplayer.html
The wmode parameter must be passed through the the 2nd argument. If it's a string, Flowplayer expects it to be the URL to the Flash player. To pass additional parameters, it must be done as a JSON object.
No wmode:
With wmode:
我以前遇到过这个问题,我认为答案只是在下拉样式中添加一个“z-index”属性。我假设您有包含菜单的 UL 或 DIV 等内容,因此只需添加“z-index: 10”或其他内容即可。
我不久前在博客上写过这个问题,修复方法如下: http://www.cjboco.com/blog.cfm/post/css-pulldown-menu-displays-behind-an-element-or- picture-in-ie7
听起来是一样的。希望有帮助。
I experienced this problem before and I think the answer is just to add a "z-index" property to the drop-down style. I'm assuming you have something like a UL or a DIV containing your menu, so just add "z-index: 10" or whatever.
I wrote about it awhile back on my blog and the fix is as what I mentioned above: http://www.cjboco.com/blog.cfm/post/css-pulldown-menu-displays-behind-an-element-or-picture-in-ie7
Sounds like the same thing. Hope it helps.