Reputation: 94101
I'm embeding this video http://www.youtube.com/watch?feature=player_embedded&v=kzsBCriOrh8 on a site but I'm getting a square aspect ratio. As you can see, in Youtube the aspect ratio is widescreen with black bars to the sides. I want this same behavior when I embed the video. I'm following the new embed params http://code.google.com/apis/youtube/player_parameters.html
I can't seem to find any option that I can add to this to control aspect ratio
&iv_load_policy=3&rel=0&autohide=1&showinfo=0&theme=light&color=white&wmode=Opaque
Any ideas?
EDIT:
I solved it! http://support.google.com/youtube/bin/answer.py?hl=en&answer=146402 And I also added a fixed width and height in my js script. It works.
Upvotes: 1
Views: 11526
Reputation: 94101
I solved it! http://support.google.com/youtube/bin/answer.py?hl=en&answer=146402. And I also added a fixed width and height in my js script. It works.
Upvotes: 2
Reputation: 25555
The height and width are controlled by the height
and width
properties on the iframe
that is used to embed the video.
Upvotes: 0