• If I use the auto-embed feature of WordPress to embed YouTube videos in posts, I just get a blank iframe. The generated code looks like this.

    <iframe width="625" height="352" frameborder="0" allowfullscreen="" src="http://www.youtube.com/embed/S2djIpC-ls8?wmode=opaque&feature=oembed">...</iframe>

    It does not mater if I use a youtube.com or youtu.be url.
    http://www.youtube.com/watch?v=S2djIpC-ls8
    http://youtu.be/S2djIpC-ls8

    If I change http to https via the development tools of Firefox it works.

    I also tried to added the missing ‘s’ within the post, but it will be ignored from the generated iframe.
    https://www.youtube.com/watch?v=S2djIpC-ls8
    https://youtu.be/S2djIpC-ls8

    I’ve disabled all plug-ins and used the default Twenty Twelve 1.3 theme to make sure no third-party component causing this problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Where are you putting this code? If you are switching between the text and visual editors, that tends to strip code.

    Thread Starter Jezze

    (@jezze)

    Mostly I use the visual editor, but this time I also checked if some mark-up was placed around the URL in the text view.

    Anyway, I found the problem. It has nothing to do with WordPress itself. The problem was myself… I served my blog over HTTPS and Firefox as most browsers do not allow embedded plain HTTP content within pages served over HTTPS.

    Maybe WordPress should check if the blog is served over HTTPS and adjust the URL of embedded content if possible.

    Thanks for trying to help and sorry for my dump mistake.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Auto Embed Youtube not working’ is closed to new replies.