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,
|
width: 1000,
|
||||||
plugins: {
|
plugins: {
|
||||||
videoJsResolutionSwitcher: {
|
videoJsResolutionSwitcher: {
|
||||||
default: 'low', // Default resolution [{Number}, 'low', 'high'],
|
dynamicLabel: true // Display dynamic labels or gear symbol
|
||||||
dynamicLabel: true, // Display dynamic labels or gear symbol
|
|
||||||
hls: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, function(){
|
}, function(){
|
||||||
var player = this;
|
var player = this;
|
||||||
window.player = player
|
window.player = player;
|
||||||
|
|
||||||
player.updateSrc({
|
player.updateSrc({
|
||||||
src: '//labs.tvpw.pl/video/hls/tears.m3u8',
|
src: '//labs.tvpw.pl/video/hls/tears.m3u8',
|
||||||
type: 'application/x-mpegURL'
|
type: 'application/x-mpegURL'
|
||||||
}, {hls: true})
|
}, {hls: true});
|
||||||
|
|
||||||
player.on('resolutionchange', function(){
|
player.on('resolutionchange', function(){
|
||||||
console.info('Source changed to %s', player.src())
|
console.info('Source changed to %s', player.src());
|
||||||
})
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue