mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 09:49:21 +02:00
example fix
This commit is contained in:
parent
65287036bb
commit
7288f228d1
1 changed files with 1 additions and 8 deletions
|
@ -34,14 +34,8 @@
|
||||||
|
|
||||||
<script src="../node_modules/video.js/dist/video.js"></script>
|
<script src="../node_modules/video.js/dist/video.js"></script>
|
||||||
<script src="../node_modules/videojs-youtube/dist/Youtube.js"></script>
|
<script src="../node_modules/videojs-youtube/dist/Youtube.js"></script>
|
||||||
<script>
|
|
||||||
videojs.options.flash.swf = "node_modules/video.js/dist/video-js.swf"
|
|
||||||
</script>
|
|
||||||
<script src="../lib/videojs-resolution-switcher.js"></script>
|
<script src="../lib/videojs-resolution-switcher.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var sourcePicker = function(){
|
|
||||||
console.log('asdasd')
|
|
||||||
}
|
|
||||||
// fire up the plugin
|
// fire up the plugin
|
||||||
videojs('video', {
|
videojs('video', {
|
||||||
controls: true,
|
controls: true,
|
||||||
|
@ -52,8 +46,7 @@
|
||||||
plugins: {
|
plugins: {
|
||||||
videoJsResolutionSwitcher: {
|
videoJsResolutionSwitcher: {
|
||||||
default: 'low',
|
default: 'low',
|
||||||
dynamicLabel: true,
|
dynamicLabel: true
|
||||||
customSourcePicker: sourcePicker
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, function(){
|
}, function(){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue