html5媒体与Flowplayer wmode 问题

发布于 2024-09-04 10:01:33 字数 657 浏览 2 评论 0原文

我正在开发我们的新主页,需要实现一个能够在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

垂暮老矣 2024-09-11 10:01:33

如何将 wmode = 透明参数传递到 Flowplayer:

Flowplayer 在嵌入调用中需要三个参数。
1) 容器ID
2)参数。 (字符串或对象)
3) 配置(插件或外观设置)

更多详细信息:http://flowplayer.org/documentation/api /flowplayer.html

wmode 参数必须通过第二个参数传递。如果它是一个字符串,Flowplayer 期望它是 Flash 播放器的 URL。要传递附加参数,必须以 JSON 对象的形式完成。

无 wmode:

$f("video-player", "flowplayer.swf" {
        plugins: {
            controls: {
            buttonOffColor: "#4523d3",
            borderRadius: "0",
            sliderColor: "#4523d3"
        }
    }
});

有 wmode:

$f("video-player", {
            src:"flowplayer.swf",
            wmode:"transparent"
        }, {
        plugins: {
            controls: {
            buttonOffColor: "#4523d3",
            borderRadius: "0",
            sliderColor: "#4523d3"
        }
    }
});

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:

$f("video-player", "flowplayer.swf" {
        plugins: {
            controls: {
            buttonOffColor: "#4523d3",
            borderRadius: "0",
            sliderColor: "#4523d3"
        }
    }
});

With wmode:

$f("video-player", {
            src:"flowplayer.swf",
            wmode:"transparent"
        }, {
        plugins: {
            controls: {
            buttonOffColor: "#4523d3",
            borderRadius: "0",
            sliderColor: "#4523d3"
        }
    }
});
你的心境我的脸 2024-09-11 10:01:33

我以前遇到过这个问题,我认为答案只是在下拉样式中添加一个“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文