When we use the embedded inline media, the video's are always displayed with the width = 425 en height = 350 (proportion 4:3). Many youtube video's are in de proportion 16:9, so the width will be 640.
Is it possible to change the size for these inline embedded media ? Or maybe better, can the inline media use the proportion of the video from the provider (ex. youtube) ?

Comments

bkat’s picture

I definitely would like the ability to make the video player size relative to the video's aspect ratio. In my case, I'd like to specify the width and let the height be dependent on the video. E.g. 480x270 for 16:9 and 480x360 for 4:3.

Iho Tea’s picture

subscribing..

new_B’s picture

Subscribing

tran_tien’s picture

Edit this file : media_youtube.theme.inc

    // Set the height and width.
    $width = 640;
    $height = 390;

That solusion for me.

bkat’s picture

@tran_tien, how do you find out the aspect ratio of a youtube video?

tran_tien’s picture

go to some youtube video then get the embed code.

aaron’s picture

aaron’s picture

Category: support » feature
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.