From 610ff99f2c467303d26628fe0b6a3d0d618fdd7c Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 6 May 2014 20:28:48 +0200 Subject: [PATCH] Don't update our local volume bar when muted SimpleWebRTC still emit local volume change event when muted --- public/js/vroom.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/vroom.js b/public/js/vroom.js index 97c0141..80f5155 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -300,6 +300,7 @@ function initVroom(room) { // Handle volume changes from our own mic webrtc.on('volumeChange', function (volume, treshold) { + if (peers.local.micMuted) return; showVolume($('#localVolume'), volume); });