# videojs-contrib-quality-levels
[](https://travis-ci.org/videojs/videojs-contrib-quality-levels)
[](https://greenkeeper.io/)
[](http://slack.videojs.com)
[](https://nodei.co/npm/videojs-contrib-quality-levels/)
A plugin that provides a framework of working with source quality levels.
Maintenance Status: Stable
- [Installation](#installation)
- [Installation](#installation-1)
- [Using](#using)
- [Supporting Quality Levels for your source](#supporting-quality-levels-for-your-source)
- [Populating the list](#populating-the-list)
- [Triggering the 'change' event](#triggering-the-change-event)
- [Supported Projects](#supported-projects)
- [Including the Plugin](#including-the-plugin)
- [`
```
### Browserify
When using with Browserify, install videojs-contrib-quality-levels via npm and `require` the plugin as you would any other module.
```js
var videojs = require('video.js');
// The actual plugin function is exported by this module, but it is also
// attached to the `Player.prototype`; so, there is no need to assign it
// to a variable.
require('videojs-contrib-quality-levels');
var player = videojs('my-video');
player.qualityLevels();
```
### RequireJS/AMD
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and `require` the plugin as you normally would:
```js
require(['video.js', 'videojs-contrib-quality-levels'], function(videojs) {
var player = videojs('my-video');
player.qualityLevels();
});
```
## License
Apache-2.0. Copyright (c) Brightcove, Inc.
[videojs]: http://videojs.com/