소스 검색

fix: Stops auto pinning if shared video is playing.

j8
damencho 4 년 전
부모
커밋
4ace04e63c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      react/features/video-layout/subscriber.js

+ 5
- 0
react/features/video-layout/subscriber.js 파일 보기

101
     const remoteScreenShares = state['features/video-layout'].remoteScreenShares;
101
     const remoteScreenShares = state['features/video-layout'].remoteScreenShares;
102
     const pinned = getPinnedParticipant(getState);
102
     const pinned = getPinnedParticipant(getState);
103
 
103
 
104
+    // if the pinned participant is shared video or some other fake participant we want to skip auto-pinning
105
+    if (pinned?.isFakeParticipant) {
106
+        return;
107
+    }
108
+
104
     // Unpin the screenshare when the screensharing participant leaves. Switch to tile view if no other
109
     // Unpin the screenshare when the screensharing participant leaves. Switch to tile view if no other
105
     // participant was pinned before screenshare was auto-pinned, pin the previously pinned participant otherwise.
110
     // participant was pinned before screenshare was auto-pinned, pin the previously pinned participant otherwise.
106
     if (!remoteScreenShares?.length) {
111
     if (!remoteScreenShares?.length) {

Loading…
취소
저장