Parcourir la source

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

The concept of "visible participants" is not yet implemented.
factor2
Saúl Ibarra Corretgé il y a 4 ans
Parent
révision
0419c5a15b
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7
    1
      react/features/video-quality/subscriber.js

+ 7
- 1
react/features/video-quality/subscriber.js Voir le fichier

@@ -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 },

Chargement…
Annuler
Enregistrer