diff --git a/public/js/chat.js b/public/js/chat.js index 528640c..91d2f85 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -647,7 +647,7 @@ function switchStreamHelper(stream) { // Update local video object VideoChat.localVideo.srcObject = stream; // Unpause video on swap - if (videoIsPaused) { + if (!VideoChat.videoEnabled) { pauseVideo(); } }