Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed high quality video with new YouTube iframe style code

Tags:

I am using youtubes new iframe code to embed video but the videos seem to be lower quality than if I watch them on youtube. Is there a way to embed the high quality video?

My code at the moment is

<iframe title="YouTube video player" width="650" height="390" src="http://www.youtube.com/embed/6X3zUh8RqbY" frameborder="0" allowfullscreen></iframe> 
like image 539
geoffs3310 Avatar asked Feb 15 '11 08:02

geoffs3310


People also ask

Can you iframe a YouTube video?

Embed a video or playlistOn a computer, go to the YouTube video or playlist you want to embed. From the list of Share options, click Embed. From the box that appears, copy the HTML code. Paste the code into your website HTML.

How do I embed a YouTube video in an iframe?

You can also use this technique with most other iframe-based embeds, such as slideshows. Here is what a typical YouTube embed code looks like, with fixed width and height: <iframe width="560" height="315" src="//www.youtube.com/embed/yCOY82UdFrw" frameborder="0" allowfullscreen></iframe>

Is there a way to hack a YouTube iframe?

1) You can try and 'hack' the iframe code itself. 2) You can try and create a container to trick the iframe into thinking it should display HD. Let's do both. [ SPECIFIC IFRAME CODE] You can possibly edit the typical embed youtube iframe link using current standards.

How can I make an iframe display HD?

To look at the meta of what is going on, it seems that there are two generalities to the desired effect. 1) You can try and 'hack' the iframe code itself. 2) You can try and create a container to trick the iframe into thinking it should display HD. Let's do both.

What does a typical YouTube embed code look like?

Here is what a typical YouTube embed code looks like, with fixed width and height: <iframe width="560" height="315" src="//www.youtube.com/embed/yCOY82UdFrw" frameborder="0" allowfullscreen></iframe>


1 Answers

&vq=hd720 or &vq=hd1080 did the trick where all else failed

like image 143
Jason Renaud Avatar answered Oct 05 '22 00:10

Jason Renaud