mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 09:49:21 +02:00
currently hls does not support default resolution - removed form example
This commit is contained in:
parent
409007d9d7
commit
9ac272f905
1 changed files with 5 additions and 7 deletions
|
@ -43,23 +43,21 @@
|
|||
width: 1000,
|
||||
plugins: {
|
||||
videoJsResolutionSwitcher: {
|
||||
default: 'low', // Default resolution [{Number}, 'low', 'high'],
|
||||
dynamicLabel: true, // Display dynamic labels or gear symbol
|
||||
hls: true
|
||||
dynamicLabel: true // Display dynamic labels or gear symbol
|
||||
}
|
||||
}
|
||||
}, function(){
|
||||
var player = this;
|
||||
window.player = player
|
||||
window.player = player;
|
||||
|
||||
player.updateSrc({
|
||||
src: '//labs.tvpw.pl/video/hls/tears.m3u8',
|
||||
type: 'application/x-mpegURL'
|
||||
}, {hls: true})
|
||||
}, {hls: true});
|
||||
|
||||
player.on('resolutionchange', function(){
|
||||
console.info('Source changed to %s', player.src())
|
||||
})
|
||||
console.info('Source changed to %s', player.src());
|
||||
});
|
||||
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue