Forums

[Plugin: WordPress Video Plugin] Change default aspect ratio for YouTube embeds (3 posts)

  1. ankurb
    Member
    Posted 2 years ago #

    Currently, embedded videos from YouTube are shown in standard 4:3 aspect ratio. Since YouTube has shifted to widescreen videos by default, it makes sense to tweak next version of this plugin to use widescreen for YouTube videos.

    Great plugin! What I like the most is the large number of sites supported. :)

    http://wordpress.org/extend/plugins/wordpress-video-plugin/

  2. mikefinazzo
    Member
    Posted 2 years ago #

    You can set that up on your own in the videos.php file for the plugin on Lines 1851 & 1852.

    define("YOUTUBE_WIDTH", 425); // default width
    define("YOUTUBE_HEIGHT", 344); // default height

    The new standards for YouTube are either 480x385 if 4:3 video, or 640x385 for 16:9 content.

    My site's main column couldn't fit the 640width, so you just have to proportionately scale the width/height down to fit your site.

    SOURCES - Myself and http://youtube-global.blogspot.com/2010/03/new-default-size-for-embedded-videos.html

  3. daburna
    Member
    Posted 1 year ago #

    In version 0.74 I changed the default videosize of youtube to the new minimum 560 x 340. If you want to get a higher resolution, change the default size in your personal copy of the plugin or write it like this in your posting [youtube id width height] e.g. [youtube s98hyoKnL30 640 385].

Topic Closed

This topic has been closed to new replies.

About this Topic