是否有在1080显示视频YouTube网址格式?(Is there a YouTube URL fo

2019-07-30 16:29发布

我知道有这个&hd=1码720p的启动YouTube视频。 是否有一个代码或特技在YouTube视频网址的末尾添加在1080开始?

Answer 1:

似乎可以正常工作了:)

用一个例子:

之前:

  • http://www.youtube.com/watch?v=ecsCrOEYl7c

后:

  • http://www.youtube.com/watch_popup?v=ecsCrOEYl7c&vq=hd1080

注意两个:

  • watch_popup
  • &vq=hd1080

其他可能的值可以在这里找到:

  • https://developers.google.com/youtube/iframe_api_reference#Playback_quality

您还可以通过附加这个(至1分钟,在此实例22秒),更改播放器的启动时间:

  • &t=1m22s

有些文档可以在这里找到:

  • https://developers.google.com/youtube/


Answer 2:

这不是可以设置质量只能用URL 1080。 几年前,它通过将有可能&fmt=37 ,但它不工作了。

但是,如果你可以使用JavaScript中的YouTube API将允许您选择质量。



Answer 3:

From documentation:

hd (supported players: AS2)

Values: 0 or 1. Default is 0. Setting to 1 enables HD playback by default. This has no effect on the Chromeless Player. This also has no effect if an HD version of the video is not available. If you enable this option, keep in mind that users with a slower connection may have an sub-optimal experience unless they turn off HD. You should ensure your player is large enough to display the video in its native resolution.

AS2 player will be retired in October 2012 and the embed codes on YouTube website load AS3 player by default. To show hd1080 you need to use JavaScript API. The functions are described here.



文章来源: Is there a YouTube URL format for displaying videos in 1080p?
标签: url youtube