Simple plugin that displays a dropdown with a list of possible videos based on its resolution, also changes the source when the user selects a desired option
npm install @bnnvara/videojs-qualityselectorSimple plugin that displays a dropdown with a list of possible videos based on its resolution, also changes the source when the user selects a desired option
``sh`
npm install --save videojs-qualityselector
To include videojs-qualityselector on your website or web application, use any of the following methods.
This is the simplest case. Get the script in whatever way you prefer and include the plugin _after_ you include [video.js][videojs], so that the videojs global is available.
`html``
An array of video sources matching the formats
An array of possible formats, it should contains a code and name
MIT. Copyright (c) Emmanuel Alves / http://github.com/manelpb
Thanks to http://www.sample-videos.com/ to provide simple example videos in different resolutions
[videojs]: http://videojs.com/