Ver código fonte

fix(rn,video-quality) fix not selecting any endpoint on mobile

The concept of "visible participants" is not yet implemented.
master
Saúl Ibarra Corretgé 3 anos atrás
pai
commit
0419c5a15b
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7
    1
      react/features/video-quality/subscriber.js

+ 7
- 1
react/features/video-quality/subscriber.js Ver arquivo

@@ -189,9 +189,15 @@ function _updateReceiverVideoConstraints({ getState }) {
189 189
     }
190 190
     const { lastN } = state['features/base/lastn'];
191 191
     const { maxReceiverVideoQuality, preferredVideoQuality } = state['features/video-quality'];
192
-    const { visibleParticipants } = state['features/filmstrip'];
193 192
     const { participantId: largeVideoParticipantId } = state['features/large-video'];
194 193
     const maxFrameHeight = Math.min(maxReceiverVideoQuality, preferredVideoQuality);
194
+    let { visibleParticipants } = state['features/filmstrip'];
195
+
196
+    // TODO: implement this on mobile.
197
+    if (navigator.product === 'ReactNative') {
198
+        visibleParticipants = Array.from(state['features/base/participants'].remote.keys());
199
+    }
200
+
195 201
     const receiverConstraints = {
196 202
         constraints: {},
197 203
         defaultConstraints: { 'maxHeight': VIDEO_QUALITY_LEVELS.NONE },

Carregando…
Cancelar
Salvar