Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Saúl Ibarra Corretgé0419c5a15b79
diff --git a/react/features/video-quality/subscriber.js b/react/features/video-quality/subscriber.js
index 8722e61d07..5fd66e4bfe 100644
--- a/react/features/video-quality/subscriber.js
+++ b/react/features/video-quality/subscriber.js
@@ -189,9 +189,15 @@ function _updateReceiverVideoConstraints({ getState }) {
}
const { lastN } = state['features/base/lastn'];
const { maxReceiverVideoQuality, preferredVideoQuality } = state['features/video-quality'];
- const { visibleParticipants } = state['features/filmstrip'];
const { participantId: largeVideoParticipantId } = state['features/large-video'];
const maxFrameHeight = Math.min(maxReceiverVideoQuality, preferredVideoQuality);
+ let { visibleParticipants } = state['features/filmstrip'];
+
+ // TODO: implement this on mobile.
+ if (navigator.product === 'ReactNative') {
+ visibleParticipants = Array.from(state['features/base/participants'].remote.keys());
+ }
+
const receiverConstraints = {
constraints: {},
defaultConstraints: { 'maxHeight': VIDEO_QUALITY_LEVELS.NONE },