From 804ace168f14bd8885d3310a2e2b78417b167cc0 Mon Sep 17 00:00:00 2001 From: Khush Jammu Date: Sat, 30 May 2020 21:25:52 +0800 Subject: [PATCH] missed one usage of videoIsPaused. captions not working yet --- public/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }