Fix issue with volume up/down shortcut

This commit is contained in:
François-Xavier Thomas
2016-11-27 18:40:02 +01:00
parent 3fdb07aa27
commit 4f2887e60a
@@ -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);