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
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}