Quality selection


Switching quality works between different files and automatically in HLS and DASH.

To switch between files, you must specify a set of links in the file parameter

[Low]source1,[Middle]source2,[High]source3
Example
new Playerjs({
  "id":"player",
  "file":"[480p]//site.com/video480.mp4,[720p]//site.com/video720.mp4"
});
You can pass the names of the quality options separately by the qualities parameter
"file":"//site.com/video480.mp4,//site.com/video720.mp4","qualities":"480p,720p"

HLS, DASH and YouTube

The player names the quality options based on the settingsBy default, approximate video resolution is used (for example, 480p, 720p, 1080p). If there are two identical names, the player will automatically add a bitrate (for example, 1000kbps) - you can select this option separatelyAlso in the settings you can choose the epithet (Low, High, HD, etc.).

Default quality

The parameter default_quality allows you to enable the desired quality

new Playerjs({
  "id":"player",
  "file":"[480p]//site.com/video480.mp4,[720p]//site.com/video720.mp4",
  "default_quality":"720p"
});
new Playerjs({
  "id":"player",
  "file":"//site.com/video.m3u8",
  "default_quality":"Low"
});
2018 © PlayerJS

Login

Restore password
Sign up
Log in

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Restore password

Restore
Forgot email? Contact us