mirror of https://github.com/calzoneman/sync.git
Handle 'best' quality preference in VideoJSPlayer
This commit is contained in:
parent
a16f885fbd
commit
7875dbdf4a
|
@ -5,6 +5,8 @@ sortSources = (sources) ->
|
||||||
|
|
||||||
qualities = ['1080', '720', '480', '360', '240']
|
qualities = ['1080', '720', '480', '360', '240']
|
||||||
pref = String(USEROPTS.default_quality)
|
pref = String(USEROPTS.default_quality)
|
||||||
|
if USEROPTS.default_quality == 'best'
|
||||||
|
pref = '1080'
|
||||||
idx = qualities.indexOf(pref)
|
idx = qualities.indexOf(pref)
|
||||||
if idx < 0
|
if idx < 0
|
||||||
idx = 2
|
idx = 2
|
||||||
|
|
|
@ -452,6 +452,9 @@
|
||||||
}
|
}
|
||||||
qualities = ['1080', '720', '480', '360', '240'];
|
qualities = ['1080', '720', '480', '360', '240'];
|
||||||
pref = String(USEROPTS.default_quality);
|
pref = String(USEROPTS.default_quality);
|
||||||
|
if (USEROPTS.default_quality === 'best') {
|
||||||
|
pref = '1080';
|
||||||
|
}
|
||||||
idx = qualities.indexOf(pref);
|
idx = qualities.indexOf(pref);
|
||||||
if (idx < 0) {
|
if (idx < 0) {
|
||||||
idx = 2;
|
idx = 2;
|
||||||
|
|
Loading…
Reference in New Issue