mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-05 10:49:28 +02:00
Group multiple sources for same label and select label when video loads #4
This commit is contained in:
parent
9e3550963d
commit
f84178908d
2 changed files with 17 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue