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&gt; <param name=”wmode” value=”transparent”></param><embed src=”http://www.youtube.com/v/CQzUsTFqtW0&#8243; 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&gt; <param name=”wmode” value=”transparent”></param><embed src=”http://www.youtube.com/v/CQzUsTFqtW0&ap=%2526fmt%3D18&#8243; type=”application/x-shockwave-flash” wmode=”transparent” width=”425″ height=”355″></embed></object>

 

The Skateboarding Dog demonstrates below.

Regular:

HD

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...