diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.js index a7006a425..ca3622fc7 100644 --- a/modules/UI/videolayout/RemoteVideo.js +++ b/modules/UI/videolayout/RemoteVideo.js @@ -486,6 +486,8 @@ RemoteVideo.prototype.hasVideoStarted = function() { RemoteVideo.prototype.addRemoteStreamElement = function(stream) { if (!this.container) { + logger.debug('Not attaching remote stream due to no container'); + return; } @@ -498,6 +500,8 @@ RemoteVideo.prototype.addRemoteStreamElement = function(stream) { } if (!stream.getOriginalStream()) { + logger.debug('Remote video stream has no original stream'); + return; } diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index 2c46a3f59..1aa32d9dc 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -200,7 +200,11 @@ const VideoLayout = { const id = stream.getParticipantId(); const remoteVideo = remoteVideos[id]; + logger.debug(`Received a new ${stream.getType()} stream for ${id}`); + if (!remoteVideo) { + logger.debug('No remote video element to add stream'); + return; }