Blob Blog

How To Embed Youtube Video In HD

It dawned on me as I was trying to work out how to do this just now that youse lot might need to know too, so to save you some Google Searching, I am going to pass on my newly acquired wisdoms. FORSOOTH!

Yes. Youtube now lets a person watch a video in HD, if they so wish, by clicking a button on the player on the website. But since most people wouldn’t think to do such a thing, as a content embedding human, you might wish to FORCE THEM evilly.

EG: Here’s my latest video as Youtube’s embedding option lets you, um, embed it:

See? Rubbish. BUT! Click the HD button, and you get this:

Much less rubbish! Achieving this is relatively simple, and involves hacking the Youtube code.

Here’s the code for the first video, with the bits you’re going to need to replace in bold:

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/Hwc9I8qvPTU&hl=en&fs=1“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/Hwc9I8qvPTU&hl=en&fs=1” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

Dig? You’re gonna want to replaces from & to the end with the following:  &hl=en&ap=%2526fmt%3D18

And your new code will look like this:

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/Hwc9I8qvPTU&hl=en&ap=%2526fmt%3D18“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/Hwc9I8qvPTU&hl=en&ap=%2526fmt%3D18” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

OK? Sweet, don’t thank me, thank this guy, cos he told me.

— By Akira The Don on Monday, March 23rd, 2009

Share & Commen
Tags:
  • http://www.wonchop.net Wonchop

    Erm…they're both the same.

    • Akira The Don

      Blindey.

  • http://thesvenhunter.blogspot.com thesvenhunter

    can’t zoom in on 2 but the audio seems better to me!?!?!?!??! (!?)

    • Akira The Don

      If you pause them both when there’s the titles you will be able to tell…

  • http://www.theuniuni.com/ Payton_vege

    Amazing write-up! This could aid plenty of people find out more about this particular issue. Are you keen to integrate video clips coupled with these? It would absolutely help out. Your conclusion was spot on and thanks to you; I probably won’t have to describe everything to my pals. I can simply direct them here!