强制youtube嵌入以720p开始 [英] Force youtube embed to start in 720p
问题描述
有几种方法建议在线执行此操作,但它们都不起作用。
例如:
http://blog.makezine.com/archive /2008/11/youtube-in-720p-hd-viewin.html
这篇文章是关于以720p开始的,但它没有甚至可以在自己的视频上工作。
有人在这里知道如何做到这一点吗?
添加:& vq = hd720
或& vq = hd1080
这个技巧。
$ b
示例
这是一个 iframe
例如,将嵌入您的视频并以720p播放。 $ b
将 V1234567
替换为您的视频的唯一嵌入代码。
< iframe width =324height =182src =// www。 youtube.com/embed/V1234567?vq=hd720frameborder =0allowfullscreen>< / if RAME>
更新
<请参阅: https://developers.google.com/youtube/js_api_reference#Playback_quality
或iframe: https://developers.google.com/youtube/iframe_api_reference#Playback_quality
- 质量等级
小
:玩家身高为240px,玩家对于4:3的宽高比,尺寸至少为320x240像素。 - 质量等级
medium
:玩家身高为360px,玩家尺寸是640×360像素(对于16:9宽高比)或480×360像素(对于4:3宽高比)。 - 质量等级
大
:玩家身高为480px,玩家尺寸为853px x 480px(纵横比为16:9)或640px通过480px(对于4:3纵横比)。 - 质量等级
hd720
:播放器高度为720px,播放器尺寸为1280x720px(对于16:9宽高比)或960px通过720px(对于4:3宽高比)。 - 质量等级
hd1080
:播放器高度为1080px,播放器尺寸为1920 x 1080像素(对于16:9宽高比)或1440像素(高宽比为4:3)。 - 质量等级
高分辨率
:播放器高度大于1080px,这意味着玩家的纵横比大于1920px x 1080px。 - 质量等级
默认
:YouTube选择适当的播放质量。此设置有效地将质量级别还原为默认状态,并取消以前使用cueVideoById,loadVideoById或setPlaybackQuality函数设置播放质量的工作。
There are a few methods suggested for doing this online, but none of them seem to work.
For example:
http://blog.makezine.com/archive/2008/11/youtube-in-720p-hd-viewin.html
That article is about making it start in 720p, but it doesn't even work on their own video.
Does anyone here know how to do it?
The addition of: &vq=hd720
or &vq=hd1080
does the trick.
Example
Here is an iframe
example that will embed your video and play it back at 720p.
Replace V1234567
with your video's unique embed code.
<iframe width="324" height="182" src="//www.youtube.com/embed/V1234567?vq=hd720" frameborder="0" allowfullscreen></iframe>
Update
See: https://developers.google.com/youtube/js_api_reference#Playback_quality
Or iframe: https://developers.google.com/youtube/iframe_api_reference#Playback_quality
- Quality level
small
: Player height is 240px, and player dimensions are at least 320px by 240px for 4:3 aspect ratio. - Quality level
medium
: Player height is 360px, and player dimensions are 640px by 360px (for 16:9 aspect ratio) or 480px by 360px (for 4:3 aspect ratio). - Quality level
large
: Player height is 480px, and player dimensions are 853px by 480px (for 16:9 aspect ratio) or 640px by 480px (for 4:3 aspect ratio). - Quality level
hd720
: Player height is 720px, and player dimensions are 1280px by 720px (for 16:9 aspect ratio) or 960px by 720px (for 4:3 aspect ratio). - Quality level
hd1080
: Player height is 1080px, and player dimensions are 1920px by 1080px (for 16:9 aspect ratio) or 1440px by 1080px (for 4:3 aspect ratio). - Quality level
highres
: Player height is greater than 1080px, which means that the player's aspect ratio is greater than 1920px by 1080px. - Quality level
default
: YouTube selects the appropriate playback quality. This setting effectively reverts the quality level to the default state and nullifies any previous efforts to set playback quality using the cueVideoById, loadVideoById or setPlaybackQuality functions.
这篇关于强制youtube嵌入以720p开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!