Kaynağa Gözat

add more logging around attaching videos to thumbnails

j8
Leonard Kim 5 yıl önce
ebeveyn
işleme
8c0f942ae1

+ 4
- 0
modules/UI/videolayout/RemoteVideo.js Dosyayı Görüntüle

@@ -486,6 +486,8 @@ RemoteVideo.prototype.hasVideoStarted = function() {
486 486
 
487 487
 RemoteVideo.prototype.addRemoteStreamElement = function(stream) {
488 488
     if (!this.container) {
489
+        logger.debug('Not attaching remote stream due to no container');
490
+
489 491
         return;
490 492
     }
491 493
 
@@ -498,6 +500,8 @@ RemoteVideo.prototype.addRemoteStreamElement = function(stream) {
498 500
     }
499 501
 
500 502
     if (!stream.getOriginalStream()) {
503
+        logger.debug('Remote video stream has no original stream');
504
+
501 505
         return;
502 506
     }
503 507
 

+ 4
- 0
modules/UI/videolayout/VideoLayout.js Dosyayı Görüntüle

@@ -200,7 +200,11 @@ const VideoLayout = {
200 200
         const id = stream.getParticipantId();
201 201
         const remoteVideo = remoteVideos[id];
202 202
 
203
+        logger.debug(`Received a new ${stream.getType()} stream for ${id}`);
204
+
203 205
         if (!remoteVideo) {
206
+            logger.debug('No remote video element to add stream');
207
+
204 208
             return;
205 209
         }
206 210
 

Loading…
İptal
Kaydet