Ver código fonte

fix: Stops auto pinning if shared video is playing.

master
damencho 4 anos atrás
pai
commit
4ace04e63c
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      react/features/video-layout/subscriber.js

+ 5
- 0
react/features/video-layout/subscriber.js Ver arquivo

@@ -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) {

Carregando…
Cancelar
Salvar