Browse Source

fix: Stops auto pinning if shared video is playing.

master
damencho 4 years ago
parent
commit
4ace04e63c
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      react/features/video-layout/subscriber.js

+ 5
- 0
react/features/video-layout/subscriber.js View File

@@ -101,6 +101,11 @@ function _updateAutoPinnedParticipant(screenShares, { dispatch, getState }) {
101 101
     const remoteScreenShares = state['features/video-layout'].remoteScreenShares;
102 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 109
     // Unpin the screenshare when the screensharing participant leaves. Switch to tile view if no other
105 110
     // participant was pinned before screenshare was auto-pinned, pin the previously pinned participant otherwise.
106 111
     if (!remoteScreenShares?.length) {

Loading…
Cancel
Save