Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
On my web site, I have a div with z-index to 1500, but the player is always above the div. The module generates the markup <param name="wmode" value="transparent" />
but it's not enough. I added the attribute wmode="transparent"
to the markup embed and my div is above the player now.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1107930-add-wmode-transparent-to-embed.patch | 2.04 KB | dezofie |
Comments
Comment #1
dezofie CreditAttribution: dezofie commentedHi,
I made the patch for the fix.
Please test it out.
Comment #2
Thomas Bosviel CreditAttribution: Thomas Bosviel commentedPatch works. Thanks.
Comment #3
johndeep CreditAttribution: johndeep commentedWe have the same issue with the 6.x-1.x-dev version of the module. We tried adding the attribute wmode="transparent" to the markup embed but the div is still below the player. Any help would be much appreciated.
Comment #4
msti@johndeep
Uncheck the 'Use the HTML5 player instead of the Flash-based' option from the "Embedded Media Field configuration' page and it will work.
Comment #5
aaron CreditAttribution: aaron commentedComment #6
pierrot CreditAttribution: pierrot commentedFor version 6.1 dev, for those interested, here is the quick fix that worked for me :
in media_youtube.them.inc line 57 add 'wmode' => 'transparent', in the array $variables['query_defaults'].
You will then be able to use html5 without the player hiding other divs :)
Comment #7
aaron CreditAttribution: aaron commentedI have committed a spruced up version of this. Thanks, @dezofie.
Comment #8
pgillis CreditAttribution: pgillis commentedIf you are struggling with this trying to use the html5 player, just tack wmode=transparent onto the list of parameters for the url in themes/media-youtube-html5.tpl.php
Comment #9
gavrillich CreditAttribution: gavrillich commentedthis worked for me in media-youtube-html5.tpl.php:
src="<?php echo $url; ?>?wmode=transparent&hd=1