soundcloud: fix volume issue
It took them 4 years, but they finally did actually make the player accept volume in the range 0-100 like their documentation suggests. *slow clap*
This commit is contained in:
parent
fc66e758ac
commit
30a5657d62
2 changed files with 4 additions and 9 deletions
|
|
@ -452,10 +452,10 @@
|
|||
console.error('sortSources() called with null source list');
|
||||
return [];
|
||||
}
|
||||
qualities = ['1080', '720', '480', '360', '240'];
|
||||
qualities = ['2160', '1440', '1080', '720', '540', '480', '360', '240'];
|
||||
pref = String(USEROPTS.default_quality);
|
||||
if (USEROPTS.default_quality === 'best') {
|
||||
pref = '1080';
|
||||
pref = '2160';
|
||||
}
|
||||
idx = qualities.indexOf(pref);
|
||||
if (idx < 0) {
|
||||
|
|
@ -880,7 +880,7 @@
|
|||
|
||||
SoundCloudPlayer.prototype.setVolume = function(volume) {
|
||||
if (this.soundcloud && this.soundcloud.ready) {
|
||||
return this.soundcloud.setVolume(volume);
|
||||
return this.soundcloud.setVolume(volume * 100);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue