Fix issue with volume up/down shortcut
This commit is contained in:
@@ -241,7 +241,8 @@
|
|||||||
var volume = parseInt($("#castVolume").slider("option", "value")) + gain;
|
var volume = parseInt($("#castVolume").slider("option", "value")) + gain;
|
||||||
$("#castVolume").slider("option", "value", volume);
|
$("#castVolume").slider("option", "value", volume);
|
||||||
} else if (jwplayer()) {
|
} else if (jwplayer()) {
|
||||||
jwplayer().setVolume(jwplayer().getVolume() + gain);
|
var volume = parseInt(jwplayer().getVolume());
|
||||||
|
jwplayer().setVolume(volume + gain);
|
||||||
} else {
|
} else {
|
||||||
var value = parseInt($("#jukeboxVolume").slider("option", "value"));
|
var value = parseInt($("#jukeboxVolume").slider("option", "value"));
|
||||||
$("#jukeboxVolume").slider("option", "value", volume);
|
$("#jukeboxVolume").slider("option", "value", volume);
|
||||||
|
|||||||
Reference in New Issue
Block a user