Handle 'best' quality preference in VideoJSPlayer

This commit is contained in:
calzoneman 2015-09-30 18:26:23 -07:00
parent a16f885fbd
commit 7875dbdf4a
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,8 @@ sortSources = (sources) ->
qualities = ['1080', '720', '480', '360', '240']
pref = String(USEROPTS.default_quality)
if USEROPTS.default_quality == 'best'
pref = '1080'
idx = qualities.indexOf(pref)
if idx < 0
idx = 2

View File

@ -452,6 +452,9 @@
}
qualities = ['1080', '720', '480', '360', '240'];
pref = String(USEROPTS.default_quality);
if (USEROPTS.default_quality === 'best') {
pref = '1080';
}
idx = qualities.indexOf(pref);
if (idx < 0) {
idx = 2;