VRFS-583. Visually reflect mute state from peers

This commit is contained in:
Jonathon Wilson 2013-10-05 12:24:22 -06:00
parent 7e2d4cc739
commit f4fe19809d
1 changed files with 3 additions and 1 deletions

View File

@ -604,7 +604,7 @@
});
}
function handleVolumeChangeCallback(mixerId, isLeft, value) {
function handleVolumeChangeCallback(mixerId, isLeft, value, isMuted) {
// Visually update mixer
// There is no need to actually set the back-end mixer value as the
// back-end will already have updated the audio mixer directly prior to sending
@ -612,6 +612,8 @@
// TODO: Use mixer's range
var faderValue = percentFromMixerValue(-80, 20, value);
context.JK.FaderHelpers.setFaderValue(mixerId, faderValue);
var $muteControl = $('[control="mute"][mixer-id="' + mixerId + '"]');
_toggleVisualMuteControl($muteControl, isMuted);
}
function handleBridgeCallback() {