How to control Youtube video borders

Asked

Viewed 1,970 times

1

How to soak a Youtube video without leaving this black embroidery on the sides. inserir a descrição da imagem aqui

I’d like to leave it 100% wide but at a certain height someone could help me?

  • The black edges are there because the video doesn’t have the same width as the screen, and Youtube as far as I know doesn’t let you flatten the video. You have to increase the height of the video until the edges disappear, or else give up the video to occupy 100% of the width.

2 answers

2

Depend on the aspect ratio of the video format.

If you are putting the player in a 4:3 format ex: 640x480 and the video is in this format, you will have no border. Now if your player is 16:9 (720p) and your video 4:3 as in case your photo will have border.

(NOTE: to be exact this player must be 21:9 and your video 16:9, both widescreen but with different proportions)

To understand screen formats: Wikipedia : http://goo.gl/ZxTmU4

Solutions:

Will you always have a video pattern? if yes, then put the player with the exact dimensions. In case the height you want.

<iframe width="640" height="480" src="//www.youtube.com/embed/Ipsi5aJzXBc" frameborder="0" allowfullscreen></iframe>

 width="640"  //largura
 height="480"  //altura

0

This edge on some videos is problem itself is editing, so it is impossible to solve the problem by resizing the player, if resize the player by width and height may prejudice the execution of others.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.