add more logging around attaching videos to thumbnails

This commit is contained in:
Leonard Kim 2019-09-17 13:26:34 -07:00 committed by George Politis
parent b8aa74f212
commit 8c0f942ae1
2 changed files with 8 additions and 0 deletions

View File

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

View File

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