missed one usage of videoIsPaused. captions not working yet

This commit is contained in:
Khush Jammu 2020-05-30 21:25:52 +08:00
parent 658c8d514c
commit 804ace168f

View File

@ -647,7 +647,7 @@ function switchStreamHelper(stream) {
// Update local video object // Update local video object
VideoChat.localVideo.srcObject = stream; VideoChat.localVideo.srcObject = stream;
// Unpause video on swap // Unpause video on swap
if (videoIsPaused) { if (!VideoChat.videoEnabled) {
pauseVideo(); pauseVideo();
} }
} }