1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

embedded YouTube-video / screen size smaller ?

Discussion in 'XenForo Questions and Support' started by erich37, Apr 19, 2011.

  1. erich37

    erich37 Well-Known Member

    when embedding a YouTube video, then the screensize of the Video at the Forum is a bit smaller than on YouTube itself.
    Why ?

    Is there a chance to have the same screen-size as on YouTube ?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Home -> BB Code Media Sites -> YouTube

    You will see dimensions in the Embed HTML. They are specified twice in the code. Change both instances to whatever dimensions you want.
    erich37 likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    This is what I use on my site:
    <iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0"></iframe>
    erich37 likes this.
  4. erich37

    erich37 Well-Known Member

    do you know what is the standard-size of the videos shown on youtube ?
    I would like to have the same size of the videos on my forum.

    many thanks!
  5. Brogan

    Brogan XenForo Moderator Staff Member

    erich37 likes this.
  6. erich37

    erich37 Well-Known Member

    thanks guys, works fine !
    not sure why it is smaller as per XF-default than as youtube-default..... should be same size IMHO
  7. Brogan

    Brogan XenForo Moderator Staff Member

    I believe the size that has been set here is to ensure embedded videos fit in personal conversations when using the fixed width style.

Share This Page