-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set default play 480p? #103
Comments
` |
Just define it on options: var player = videojs('player');
player.videoJsResolutionSwitcher({
default: 480,
dynamicLabel: true
});
player.updateSrc([{
src: 'https://vjs.zencdn.net/v/oceans.mp4',
type: 'video/mp4',
label: '1080p',
res: 1080
},
{
src: 'https://vjs.zencdn.net/v/oceans.mp4',
type: 'video/mp4',
label: '720p',
res: 720
},
{
src: 'https://vjs.zencdn.net/v/oceans.mp4',
type: 'video/mp4',
label: '480p',
res: 480
}
]); |
@willyelns Default resolution in using
|
You can change res value like below to change the sorting of the resolutions. |
my code:
The text was updated successfully, but these errors were encountered: