WordPress.org

Ready to get started?Download WordPress

Forums

Youtube embed not showing preview image on Chrome (1 post)

  1. WordpMoon12
    Member
    Posted 6 months ago #

    I noticed that when I embed Youtube videos to my blog posts on Chrome browser the preview screen is blank. However, when I use Firefox browser I can see the video preview images.
    Example:
    <iframe width="420" height="315" src="//www.youtube.com/embed/1sIWez9HAbA?rel=0" frameborder="0" allowfullscreen></iframe>

    I also tried to add the direct url:
    http://www.youtube.com/watch?v=1sIWez9HAbA
    but still didn;t work on Chrome

    Then I tested the old embed code from Youtube and that did the trick for Chrome.
    <object width="420" height="315"><param name="movie" value="//www.youtube.com/v/1sIWez9HAbA?version=3&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/1sIWez9HAbA?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

    Any ideas why only the old embed code is showing the preview image on Chrome browser?

Reply

You must log in to post.

About this Topic