Feb
19
YouTube Embed High Quality and HD
∇ Category:Technology and Toys | → 0 Comments |
To embed video with the High Quality option -
In the embed code add the &ap=%2526fmt%3D18 to the end of each of the YouTube embed URLs.
To embed video with the HD High Definition 720P option -
In the embed code add the &ap=%2526fmt%3D22 to the end of each of the YouTube embed URLs.
I also created a tool to automate the process: http://dennismueller.org/blog/tools/youtube-embed-tool/
| Examples: | |
| Normal embed URL: | http://www.youtube.com/v/xxxxxxxxxxx&hl=en&fs=1 |
| High Quality embed URL: | http://www.youtube.com/v/xxxxxxxxxxx&hl=en&fs=1&ap=%2526fmt%3D18 |
| High Def embed URL: | http://www.youtube.com/v/xxxxxxxxxxx&hl=en&fs=1&ap=%2526fmt%3D22 |
Here are some examples. Note it does not say it is HQ or HD in the player but the quality is obviously improved.
Standard Def
http://www.youtube.com/watch?v=LB5r6CJk0Tg
High Quality
http://www.youtube.com/watch?v=LB5r6CJk0Tg&fmt=18
High Def (720P)
http://www.youtube.com/watch?v=LB5r6CJk0Tg&fmt=22
Code Example for the HD Embed Code:
<object width="480" height="295">
<param name="movie" value="http://www.youtube.com/v/LB5r6CJk0Tg&hl=en&fs=1&ap=%2526fmt%3D22"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/LB5r6CJk0Tg&hl=en&fs=1&ap=%2526fmt%3D22" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>
</object>
Subscribe
twitter/dm247


