瀏覽代碼

fix(video-layout): handle undefined video type for large video update

When replace track is called in JitsiConference, there is no
guarantee a videoType update will come in presence before
the track added event. This can lead to the situation in
LargeVideoManager where an update is called with a track
with an undefined videoType.
master
Leonard Kim 7 年之前
父節點
當前提交
5dc2aca081
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/UI/videolayout/VideoLayout.js

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

@@ -4,11 +4,11 @@ const logger = require('jitsi-meet-logger').getLogger(__filename);
4 4
 import {
5 5
     JitsiParticipantConnectionStatus
6 6
 } from '../../../react/features/base/lib-jitsi-meet';
7
+import { VIDEO_TYPE } from '../../../react/features/base/media';
7 8
 import {
8 9
     getPinnedParticipant,
9 10
     pinParticipant
10 11
 } from '../../../react/features/base/participants';
11
-
12 12
 import { SHARED_VIDEO_CONTAINER_TYPE } from '../shared_video/SharedVideo';
13 13
 import SharedVideoThumb from '../shared_video/SharedVideoThumb';
14 14
 
@@ -977,7 +977,7 @@ const VideoLayout = {
977 977
             largeVideo.updateLargeVideo(
978 978
                 id,
979 979
                 smallVideo.videoStream,
980
-                videoType
980
+                videoType || VIDEO_TYPE.CAMERA
981 981
             ).then(() => {
982 982
                 // update current small video and the old one
983 983
                 smallVideo.updateView();

Loading…
取消
儲存