瀏覽代碼

fix(SmallVideo): computeDisplayModeInput

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
j8
Hristo Terezov 4 年之前
父節點
當前提交
e161cbc4bd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/UI/videolayout/SmallVideo.js

+ 1
- 1
modules/UI/videolayout/SmallVideo.js 查看文件

244
             = isLocal ? getLocalVideoTrack(tracks) : getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.VIDEO, id);
244
             = isLocal ? getLocalVideoTrack(tracks) : getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.VIDEO, id);
245
 
245
 
246
         if (typeof participant !== 'undefined' && !participant.isFakeParticipant && !participant.local) {
246
         if (typeof participant !== 'undefined' && !participant.isFakeParticipant && !participant.local) {
247
-            isScreenSharing = typeof track !== 'undefined' && videoTrack?.videoType === 'desktop';
247
+            isScreenSharing = videoTrack?.videoType === 'desktop';
248
             connectionStatus = participant.connectionStatus;
248
             connectionStatus = participant.connectionStatus;
249
         }
249
         }
250
 
250
 

Loading…
取消
儲存