瀏覽代碼

add more logging around attaching videos to thumbnails

j8
Leonard Kim 5 年之前
父節點
當前提交
8c0f942ae1
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 4
    0
      modules/UI/videolayout/RemoteVideo.js
  2. 4
    0
      modules/UI/videolayout/VideoLayout.js

+ 4
- 0
modules/UI/videolayout/RemoteVideo.js 查看文件

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

+ 4
- 0
modules/UI/videolayout/VideoLayout.js 查看文件

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

Loading…
取消
儲存