How to force 480p video quality for iframed Youtube videos?
Sample code:
<iframe width="560" height="315" src="http://www.youtube.com/embed/FqRgAs0SOpU" frameborder="0" allowfullscreen></iframe>
To force a specific video quality during playback, add the VQ parameter to the URL to specifically set the video quality, regardless of the window size. For example, using the code below causes the video to play at 480p by default. (The highest for this particular video.) Notice this URL uses the vq=large parameter.
The cap on video quality was implemented to ease load on the networks, which had seen unprecedented surge across the world due to coronavirus lockdown. YouTube has removed the standard definition video quality restriction on smartphones, including iOS and Android devices, but not for everyone.
Append the following parameter to the Youtube-URL:
144p: &vq=tiny
240p: &vq=small
360p: &vq=medium
480p: &vq=large
720p: &vq=hd720
For instance:
src="http://www.youtube.com/watch?v=oDOXeO9fAg4"
becomes:
src="http://www.youtube.com/watch?v=oDOXeO9fAg4&vq=large"
You can also use for 1080 hd values:
240p: &vq=small , 360p: &vq=medium , 480p: &vq=large , 720p: &vq=hd720 , &vq=hd1080
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With