The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Jetpack by WordPress.com
problem with youtube.php embedding the wrong size (1 post)

  1. azn137
    Posted 4 years ago #

    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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic