问题
I have a flowplayer
that I am using with a few pictures below it. When you click on these pictures a dialog
is created with an enlarged version of these pictures. The problem is the flowplayer
will always be on top of the dialog
.
I have tried setting the z-index
of the dialog
high and the flowplayer
low, but it doesn't work.
Is there a method in flowplayer
that will lower its z-index
or allow for my dialog
to be placed over it?
Edit Heres the flowplayer:
//Uses flowplayer to create player
$f('#rightVideoContent', "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
//Creates a single clip for the flow player
clip: {
url: videoLocation,
autoPlay: true,
autoBuffering: true
},
plugins: {
controls: null
},
onLoad: function () {
//Do nothing here
}
});
And here is the div
<div id = "rightVideoContent" class = "VideoDiv"></div>
I use flowplayer-3.2.6.js
as well
回答1:
I think what you've missed is :
<param name="wmode" value="transparent" />
a bit more about wmode
edit: take a look at your code ... to embed a swf file you gotta have something like:
<object width="550" height="400">
<param name="movie" value="somefilename.swf" />
<embed src="somefilename.swf" width="550" height="400"></embed>
</object>
all you need to do is just add another <param ...
after the first one
edit2: you should replace the second parameter ... instead of the url string put there
{src: 'http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf', wmode: 'transparent'}
回答2:
You probably need to embed the flash with wmode="transparent"
.
As in @locrizak's answer, you can also use wmode="opaque"
, which is better because it's less processor intensive.
These should help:
- http://flowplayer.org/forum/2/10645
- http://flowplayer.org/documentation/configuration/player.html#embedding
回答3:
You need a
wmode: "transparent/opaque"parameter on the flash object.
回答4:
I had trouble with this and Flowplayer wouldn't add the wmode parameter no matter what i tried
I used this jQuery snippet and it solved it!
$('#videocontainerid object').prepend('<param name="wmode" value="opaque">');
or for every object:
$('object').prepend('<param name="wmode" value="opaque">');
回答5:
see HTML Overlays in Flowplayer
example code:
flowplayer("player", {
src:"http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf",
wmode: "opaque" // This allows the HTML to hide the flash content
}, {
clip: {
url: 'http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv'
}
});
来源:https://stackoverflow.com/questions/5992513/flowplayer-playing-over-everything