소스 검색

ref(video-layout): remote thumbnail should not update large video directly

j8
Leonard Kim 7 년 전
부모
커밋
92414a346a
2개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 1
    8
      modules/UI/videolayout/RemoteVideo.js
  2. 5
    0
      modules/UI/videolayout/VideoLayout.js

+ 1
- 8
modules/UI/videolayout/RemoteVideo.js 파일 보기

@@ -366,14 +366,7 @@ RemoteVideo.prototype.removeRemoteStreamElement = function(stream) {
366 366
     logger.info(`${isVideo ? 'Video' : 'Audio'
367 367
     } removed ${this.id}`, select);
368 368
 
369
-    // when removing only the video element and we are on stage
370
-    // update the stage
371
-    if (isVideo && this.isCurrentlyOnLargeVideo()) {
372
-        this.VideoLayout.updateLargeVideo(this.id);
373
-    } else {
374
-        // Missing video stream will affect display mode
375
-        this.updateView();
376
-    }
369
+    this.updateView();
377 370
 };
378 371
 
379 372
 /**

+ 5
- 0
modules/UI/videolayout/VideoLayout.js 파일 보기

@@ -347,6 +347,11 @@ const VideoLayout = {
347 347
         if (remoteVideo) {
348 348
             remoteVideo.removeRemoteStreamElement(stream);
349 349
         }
350
+
351
+        if (stream.isVideoTrack() && this.isCurrentlyOnLarge(id)) {
352
+            this.updateLargeVideo(id);
353
+        }
354
+
350 355
         this.updateMutedForNoTracks(id, stream.getType());
351 356
     },
352 357
 

Loading…
취소
저장