From 4f4bc8397cfcdc61688d651f5757a8b023ddd80f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 18 May 2014 22:09:20 +0200 Subject: [PATCH] Record peers mute/pause status --- public/js/vroom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/vroom.js b/public/js/vroom.js index 67b939f..1beff78 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -630,10 +630,12 @@ function initVroom(room) { showVolume($('#volume_' + data.id), -46); var div = 'mute_' + data.id, cl = 'muted'; + peers[data.id].micMuted = true; } else if (data.name === 'video'){ var div = 'pause_' + data.id, cl = 'paused'; + peers[data.id].videoPaused = true; } else{ return; @@ -651,9 +653,11 @@ function initVroom(room) { webrtc.on('unmute', function(data){ if (data.name === 'audio'){ var el = "#mute_" + data.id; + peers[data.id].micMuted = false; } else { // if (data.name === 'video') var el = "#pause_" + data.id; + peers[data.id].videoPaused = false; } $(el).remove(); });