currently hls does not support default resolution - removed form example

This commit is contained in:
Kasper Moskwiak 2016-04-13 23:35:10 +02:00
parent 409007d9d7
commit 9ac272f905

View file

@ -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>