Hi all!
WP 2.9 oEmbed feature should add these parameters
<param name="wmode" value="transparent">
and
wmode="transparent"
in the embed tag to avoid that the video appears above other elements, such as menus.
These parameters are already present in the press-this.php file, but not if I paste a flash video url (like youtube) in my text area in the writing panel.
Please, fix this. :-)
Thank you.
Aldo
Chandra M
Member
Posted 3 years ago #
hodgeman
Member
Posted 3 years ago #
Third that, is there a way to specify it in a embed shortcode tag?
[embed wmode="transparent"]YOUTUBE_URL[/embed] doesn't work
@hodgeman
I prepared a post, specific for WordPress and YouTube: it's in Italian, but at this link you can read it in English via the automated translation by Google.
Remember that the code in the page automatically translated has some errors after being processed by Google: get the code from the Italian original page.
Using the code explained in that post you'll obtain, in addition, a page valid for W3C.
um...fourth this...
If it's already in Press This, it seems a bit ridiculous that it's not in the normal oEmbed...
edit: actually, nevermind. just looked at Trac and this was taken off the roadmap: http://core.trac.wordpress.org/ticket/11436
However, there's a solution here: http://forum.go41.de/topic/add_filter-to-embed_oembed_html-to-get-wmode-transparent
You can replace "transparent" in that code with "opaque" which is presumably better and less resource-intensive.
Crantea
Member
Posted 2 years ago #
I've created a short 7-lines filter doing just that (shorter and easier to understand imho):
http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html
+1 for this issue while it's still current in WP3.0.1 :(
I suppose WP leaves it up to Youtube and the like to return embed code with wmode without considering the consequences for some if they don't?
@Crantea, you ROCK ! Thanks for sharing that work-around...
One suggestion: would it not be better to use wmode "opaque" instead of "transparent" ? It's less memory intensive and none of these video websites produce movies that use/need transparency anyway :)