WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Jetpack by WordPress.com] problem with youtube.php embedding the wrong size

[Plugin: Jetpack by WordPress.com] problem with youtube.php embedding the wrong size

  • Any YouTube video that’s embedded this way is displayed at a size that is just slightly too wide. This results in thin black bars on the left and right of the video, and happens with videos that are 16:9 or 4:3 aspect ratio.

    It looks like someone did the math wrong, that’s my best guess at the moment.

    My media max width is set to 600px, and this is the HTML code that was returned:

    <p><object width="600" height="475"><param name="movie" value="http://www.youtube.com/v/sfAPT1_0TDg?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/sfAPT1_0TDg?version=3" type="application/x-shockwave-flash" width="600" height="475" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
    <p><span style='text-align:center; display: block;'><object width='640' height='390'><param name='movie' value='http://www.youtube.com/v/Ei6JvK0W60I?version=3&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1'/><param name='allowfullscreen' value='true'/><param name='wmode' value='opaque'/><embed src='http://www.youtube.com/v/Ei6JvK0W60I?version=3&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='640' height='390' wmode='opaque'></embed></object></span></p>

    More details can be viewed here: http://wordpress.org/support/topic/youtube-oembed-auto-resizes-to-the-wrong-size

    http://wordpress.org/extend/plugins/jetpack/

  • The topic ‘[Plugin: Jetpack by WordPress.com] problem with youtube.php embedding the wrong size’ is closed to new replies.