WordPress.org

Forums

Responsive Video Light
[resolved] Video appears in front of menus (2 posts)

  1. kjfrank
    Member
    Posted 4 months ago #

    Not sure how you want to handle this, for know I have hardcoded it in the plugin.

    You tube videos require you to pass "wmode=transparent" at the end of your iframe src attribute to prevent the video from appearing on top of other Items (like menus on the page).

    I have modified the plugin code to read:

    <iframe src="http://www.youtube.com/embed/'.$video_id
              .'?rel='.$rel_param.'&wmode=transparent" frameborder="0" allowfullscreen></iframe>

    It may be more appropriate if you update the plugin to be able to pass the wmode in as an param in the shortcode:

    [responsive_youtube NbCr0UyoFJA norel wmodetrans]

    Thanks for the simple straightforward implementation.

    http://wordpress.org/extend/plugins/responsive-video-light/

  2. billknechtel
    Member
    Plugin Author

    Posted 4 months ago #

    Hello!

    Thank you for bringing this to my attention. I didn't even know wmode was a supported parameter for youtube! I did some googling to figure out exactly what was happening, and it looks like it somehow affects the z-index of the iframe, which is very odd. The flash wmode parameter doesn't do that at all!

    Anyway, I just finished rolling out a new version of the plugin that allows you to set a mode option globally as well as per-video with a short tag parameter. Please let me know if there's anything else that crops up!

    Kind Regards,
    Bill

Reply

You must log in to post.

About this Plugin

About this Topic