Embedding Youtube HD

da InsideOnlineVideo

In November, YouTube announced plans for HD. They’re now testing it in some of their videos. Add &fmt=18 to the end of a YouTube video page URL to see if an HD version is available. Ergo this:

http://www.youtube.com/watch?v=CQzUsTFqtW0

…becomes this:

http://www.youtube.com/watch?v=CQzUsTFqtW0&fmt=18

If an HD version isn’t available yet, the regular version will play.To get an HD embed, add &ap=%2526fmt%3D18 to each of the two instances of the video URL in the code. Ergo this:

<object width=”425″ height=”355″> <param name=”movie” value=”http://www.youtube.com/v/CQzUsTFqtW0″></param> <param name=”wmode” value=”transparent”></param><embed src=”http://www.youtube.com/v/CQzUsTFqtW0″ type=”application/x-shockwave-flash” wmode=”transparent” width=”425″ height=”355″></embed></object>

…becomes this

<object width=”425″ height=”355″> <param name=”movie” value=”http://www.youtube.com/v/CQzUsTFqtW0&ap=%2526fmt%3D18″></param> <param name=”wmode” value=”transparent”></param><embed src=”http://www.youtube.com/v/CQzUsTFqtW0&ap=%2526fmt%3D18″ type=”application/x-shockwave-flash” wmode=”transparent” width=”425″ height=”355″></embed></object>

 

The Skateboarding Dog demonstrates below.

Regular:

HD

Leave a Reply