# Video.js Resolution Switcher A revolutionary plugin for video.js ## Getting Started Once you've added the plugin script to your page, you can use it with any video: ```html ``` There's also a [working example](example.html) of the plugin you can check out if you're having trouble. ## Methods ### newVideoSources([source]) ```javascript // Update video sources player.newVideoSources([ { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4", label: 'SD' }, { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4", lable: 'HD' }, { type: "video/mp4", src: "http://www.example.com/path/to/video.mp4", label: '4k' } ]) ``` #### PARAMETERS: * source `Array` array of sources ## Events ### resolutionchange `EVENT` > Fired when resolution is changed