Is there a YouTube URL format for displaying video

2019-03-15 15:39发布

I know there is this &hd=1 code to start a YouTube video in 720p. Is there a code or trick to add at the end of a YouTube video URL to start in 1080p?

标签: url youtube
3条回答
啃猪蹄的小仙女
2楼-- · 2019-03-15 16:15

Seems to be working again :)

Using an example:

before:

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

after:

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

note both:

  • watch_popup
  • &vq=hd1080

Other possible values can be found here:

You can also change the start time of the player by appending this (to 1 minute and 22 seconds in this example):

  • &t=1m22s

Some documentation can be found here:

查看更多
该账号已被封号
3楼-- · 2019-03-15 16:20

It's not possible to set the quality to 1080p only with an URL. Some years ago it was possible by adding &fmt=37 but it doesn't work anymore.

However, if you can use JavaScript the YouTube API will allow you to select the quality.

查看更多
贪生不怕死
4楼-- · 2019-03-15 16:21

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.

查看更多
登录 后发表回答