Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator James Huff

    (@macmanx)

    I just did some testing and YouTube’s new embed code is (of course) not valid, and valid code is one of the hallmarks of VVQ. However, the code can be made valid by removing the redundant type declaration and obsolete frameborder attribute:

    <iframe class="youtube-player" width="640" height="385" src="https://www.youtube.com/embed/VIDEO_ID"></iframe>

    Plugin Contributor viper007bond

    (@viper007bond)

    Yep, been fooling around with it in my development version (but haven’t committed it yet).

    I know it’s invalid, but will removing frameborder cause any issues? Namely a border? ?? I Googled and it doesn’t seem to be possible to do via CSS.

    Moderator James Huff

    (@macmanx)

    You’re right. Under my test blog using Twenty Ten, omitting frameborder did not cause a border to appear, but a border did appear on my main blog using a modified Fauna.

    According to the W3 validator, CSS can be used instead, perhaps no border applied to the youtube-player class?

    I’ll play around with it when it’s a more decent hour.

    Thanks!

    Moderator James Huff

    (@macmanx)

    Success (almost)! The following addition to style.css removes the border and works under Safari 5.0.1, Firefox 3.6.8, and Chrome 5.0.375, but not IE 8.0.6 (go figure):

    iframe.youtube-player {
    	border: none;
    }
    Moderator James Huff

    (@macmanx)

    I have unfortunately exhausted my ideas. The above code works for everything except IE. Everything else I tried simple broke other browsers. This could benefit from a fresh set of eyes. Any other takers?

    Plugin Contributor viper007bond

    (@viper007bond)

    Based on my limited Google searching, it’s not possible. ??

    Moderator James Huff

    (@macmanx)

    Stupid IE. ??

    Well, those who are unfortunate enough to use IE will just have to make do with a border. ??

    Thanks for checking!

    Is there any progress on YouTube Embed API? Need some help to finalize that?

    Thanks ??

    Plugin Contributor viper007bond

    (@viper007bond)

    The in progress code is here:

    https://plugins.trac.www.ads-software.com/browser/vipers-video-quicktags/branches/development

    I’ve had no time to work on it in months though. So busy with work and I don’t really want to spend my free time on nights and weekends working on WordPress too. ??

    It’s too bad about this.

    One option for people who can’t wait: doing a find and replace on the quicktag itself, to turn it into the regular youtube iframe embed.

    Inserting the bare link will transform it into an embed via oEmbed:

    https://codex.www.ads-software.com/Embeds

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Viper's Video Quicktags] Adding Support for YouTube iframe Embeds?’ is closed to new replies.