Group multiple sources for same label and select label when video loads #4

This commit is contained in:
Kasper Moskwiak 2015-10-18 00:13:06 +02:00
parent 9e3550963d
commit f84178908d
2 changed files with 17 additions and 7 deletions

View file

@ -49,7 +49,7 @@
<script>
videojs.options.flash.swf = "node_modules/video.js/dist/video-js.swf"
</script>
<script src="lib/videojs-resolution-switcher.js"></script>
<script src="index.js"></script>
<script>
// fire up the plugin
videojs('video', {
@ -58,7 +58,7 @@
width: 1000,
plugins: {
videoJsResolutionSwitcher: {
default: '360', // Default resolution [{Number}, 'low', 'high'],
default: 'low', // Default resolution [{Number}, 'low', 'high'],
dynamicLabel: true // Display dynamic labels or gear symbol
}
}