Flowplayer 位于模态窗口上方

发布于 2024-09-12 07:11:55 字数 541 浏览 16 评论 0原文

在我的网络应用程序中,我有一些网页,人们可以在其中观看视频。我正在使用 Flowplayer 播放 Flash 视频。您可以在这里看到它: http://flowplayer.org/

我还在我的 Web 应用程序中使用模式窗口。我用这个 jQuery 插件创建它们: http://code.google.com /p/jquery-modalbox-plugin/

模态窗口效果很好。唯一的问题是,当页面上任何地方有一个 flowplayer 视频时,我希望在单击某个链接后出现一个模态窗口,该 flowplayer 就会出现在模态窗口上方。页面的其余部分正确显示在模式窗口后面。

有什么想法如何解决这个问题吗?

我真的不想放弃 Flowplayer,因为它对我很有用,而且图形看起来也非常漂亮。

In my web application, I have webpages where people can watch videos. I'm using Flowplayer for playing flash videos. You can see it here: http://flowplayer.org/

I also use modal windows in my web application. I'm creating them with this jQuery plugin: http://code.google.com/p/jquery-modalbox-plugin/

Modal windows work great. The only problem is that when there is a flowplayer video anywhere on the page where I want to have a modal window appear after clicking some link, the flowplayer appears above the modal window. Rest of the page appears correctly behind the modal window.

Any ideas how to solve this?

I don't really want to get rid of the Flowplayer ebcause it has served me well and it also looks very nice graphically.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(6

独自唱情﹋歌 2024-09-19 07:11:55

您必须为 Flash 文件设置 wmode="transparent"

You have to set wmode="transparent" to the flash file.

够运 2024-09-19 07:11:55

如何将 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.

Examples:

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-19 07:11:55

请参阅此处,基本上:-

将以下参数添加到 OBJECT 标记:

<参数名称=“wmode”
值=“透明”>

或者将以下参数添加到 EMBED 标记:

wmode="透明"

See here, basically:-

Add the following parameter to the OBJECT tag:

<param name="wmode"
value="transparent">

OR Add the following parameter to the EMBED tag:

wmode="transparent"

是伱的 2024-09-19 07:11:55

如果您使用 jQuery 设置 Flowplayer 参数,那么我们必须将其设置为:

 $f("playback", { src: js_path , wmode:"transparent" } , {
    clip: {
        url: videoFile ,           
        autoPlay:  false,
        autoBuffering: true,
        scaling: 'fit'            
    },

换句话说,不要在剪辑数组中设置该参数;那里行不通。

If you are setting the Flowplayer params using jQuery then we have to place this as:

 $f("playback", { src: js_path , wmode:"transparent" } , {
    clip: {
        url: videoFile ,           
        autoPlay:  false,
        autoBuffering: true,
        scaling: 'fit'            
    },

In other words, do not set that parameter in clip array; it won't work there.

听你说爱我 2024-09-19 07:11:55

您是否尝试过将 Flowplayer 置于 z-index 为负的情况下?或者反过来,将模态框放在 z-index 高的位置?

Have you tried to put Flowplayer in a with a negative z-index? Or the other way around, put the modalbox in a with high z-index?

我只土不豪 2024-09-19 07:11:55

也许您可以覆盖生成的 css 以在加载后更改 z 索引?找出生成了哪些类或元素,然后制定具有更高特异性的 CSS 规则来覆盖 z 索引。另外,你的代码是什么样的?

Maybe you could overwrite the generated css to change the z-indexes after they load? Find out what classes or elements are generated and then make css rules with higher specificity to overwrite the z-indexes. Also, what does your code look like?

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