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

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

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