Reputation: 7404
I have a flowplayer that I am using with a few div tags below it. When you click on div tag it will display another div tag same like dialog box over the page. The problem is the flowplayer will always be on top of the div.
I have tried setting the z-index of the div, but it doesn't work.
Is there a method in flowplayer that will lower its z-index or allow for my div to be placed over it?
I also use wmode property for flowplayer but still it doesn't work.
Following is my code:
<script type="text/javascript" src="/common/js/flowplayer-3.2.9.min.js"></script>
<a href="<?php echo $this->hotelVideoUrl; ?>"
style="display:block;width:304px;height:208px; z-index: -1; position: relative;"
id="player">
</a>
<script language="JavaScript">
flowplayer("player", "/common/js/flowplayer-3.2.10.swf",{
clip: {
autoPlay: true,
autoBuffering: true
},
wmode: 'opaque/transperent'
});
</script>
Upvotes: 0
Views: 2401
Reputation: 7404
Modify you following code :
wmode: 'opaque/transparent'
To
wmode: 'opaque' or wmode: 'transparent'
Upvotes: 0
Reputation: 1784
According to the document, you should put wmode in the second parameter, an example like:
flowplayer("player", {
src:"http://releases.flowplayer.org/swf/flowplayer-3.2.11.swf",
wmode: "opaque" // This allows the HTML to hide the flash content
}, {
clip: {
url: 'http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv'
}
});
So I guess in your case, if you can try below code:
<script type="text/javascript" src="/common/js/flowplayer-3.2.9.min.js"></script>
<a href="<?php echo $this->hotelVideoUrl; ?>"
style="display:block;width:304px;height:208px; z-index: -1; position: relative;"
id="player">
</a>
<script language="JavaScript">
flowplayer("player", {
src : "/common/js/flowplayer-3.2.10.swf",
wmode: 'opaque'}, {
clip: {
autoPlay: true,
autoBuffering: true
}
});
</script>
You should be able to get it working. Let me know if it works.
Upvotes: 3
Reputation: 1066
It should work by just using ...
wmode: "opaque"
Edit: The way you have added flow player is very different to how i do it.
Check this thread because i think it might help you ...
Upvotes: 1