Add wmode transparent to flash videos
WP 2.9 oEmbed feature should add these parameters
<param name="wmode" value="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. 🙂
Third that, is there a way to specify it in a embed shortcode tag?
[embed wmode="transparent"]YOUTUBE_URL[/embed]doesn’t work
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.
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.
I’ve created a short 7-lines filter doing just that (shorter and easier to understand imho):
+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 🙂
- The topic ‘Add wmode transparent to flash videos’ is closed to new replies.