Explorar el Código

fix: Stops auto pinning if shared video is playing.

j8
damencho hace 4 años
padre
commit
4ace04e63c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      react/features/video-layout/subscriber.js

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

@@ -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…
Cancelar
Guardar