Fixes few undefined errors on standby.
This commit is contained in:
@@ -637,7 +637,7 @@ const VideoLayout = {
|
||||
*/
|
||||
onVideoMute(id, value) {
|
||||
if (APP.conference.isLocalId(id)) {
|
||||
localVideoThumbnail.setVideoMutedView(value);
|
||||
localVideoThumbnail && localVideoThumbnail.setVideoMutedView(value);
|
||||
} else {
|
||||
const remoteVideo = remoteVideos[id];
|
||||
|
||||
@@ -985,7 +985,7 @@ const VideoLayout = {
|
||||
} else if (currentId) {
|
||||
const currentSmallVideo = this.getSmallVideo(currentId);
|
||||
|
||||
currentSmallVideo.updateView();
|
||||
currentSmallVideo && currentSmallVideo.updateView();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user