From 9ac272f9056e933374981fc642f36c706ed21a78 Mon Sep 17 00:00:00 2001 From: Kasper Moskwiak Date: Wed, 13 Apr 2016 23:35:10 +0200 Subject: [PATCH] currently hls does not support default resolution - removed form example --- examples/hls.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/hls.html b/examples/hls.html index 7cbd02f..b7a70f2 100644 --- a/examples/hls.html +++ b/examples/hls.html @@ -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()); + }); })