SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Youtube Embed, HTML] Embeded youtube video controls doens't show in different resolu

    i added an embeded youtube player to my website:
    Code:
    <iframe src="http://www.youtube.com/embed/eFjm3CoKj7g" width="450" height="300" allowfullscreen="" frameborder="0" id="media"></iframe>
    But I have encountered a problem.. While using the resolution of: width=450 & height=300 Everything works fine. But when using the resoultion of (which is youtube suggested video ratio): width=533 & height=300 The controls of the video doesn't show up. Only when you click to play the video the controls then pop out.. I have tried changing out different settings of the following parameters: "controls", "autohide".

    Nothing seems to change,
    Desperate for help,
    Thanks in advanced,
    Din.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,590
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Those dimensions don't fit the natural dimensions of the video. If you want to increase the width, then also increase the height by the same ratio. E.g.

    width="533" height="355"

  3. #3
    SitePoint Member
    Join Date
    Jun 2013
    Location
    Houston, TX
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sometimes the width of your outer background in your website matters. If its smaller than the width of the video then it will over lap the page. You have to check the dimensions of your website and the video. Then adjust its width accordingly to its specific video width. Thanks!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •