Просмотр исходного кода

add more logging around attaching videos to thumbnails

master
Leonard Kim 6 лет назад
Родитель
Сommit
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
 

Загрузка…
Отмена
Сохранить