Sunday, June 3, 2012

[YouTube-API] Re: How to embed to have a HD playback by default ?

Assuming you have not disabled HD in your account settings: (When logged in at  http://www.youtube.com/account_playback)
The default player might be another version. And "hd" is only for version=2.
Then there may not be enough room to use 1080x720 and you should increase the iframe values for height and width.
These settings do work for me to play hd by default:

<html>
<body>
<iframe src="http://www.youtube.com/v/tGhouASeaKI?version=2&hd=1&fs=1&rel=0"
width="1100" height="800"
frameborder="0" 
MARGINHEIGHT="10" MARGINWIDTH="5"
VSPACE="10"  HSPACE="20"
>
</iframe>
</body>
</html>



On Friday, June 1, 2012 9:23:56 PM UTC+2, Tom wrote:
I have a youtube HD video in 1080x720 resolution that i've embedded to a web page.
I used the "hd=1" option as advised in here.

Still i get no HD selected by default.

-- What am I doing wrong?



Here is the embed line:
<iframe width="1080" height="750" src="http://www.youtube.com/embed/tGhouASeaKI?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>

Here is the webpage with it:
http://www.promel.hr/images/videoPS/index.html


Any help appreciated!!!

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/cNdhJOZ2Br8J.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment