如何使用新的YouTube iframe样式代码嵌入高品质视频
问题描述:
我正在使用youtubes新的iframe代码来嵌入视频,但视频的质量似乎低于在YouTube上观看视频的质量。有没有办法嵌入高质量的视频?
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>
答
哦,我发现现在你必须?HD在诸如URL的末尾= 1,因此:
Oh I've found it now you have to put ?hd=1 on the end of the url like so:
<iframe title="YouTube video player" width="650" height="390" src="http://www.youtube.com/embed/6X3zUh8RqbY?hd=1" frameborder="0" allowfullscreen></iframe>