From 0419c5a15b79a63a7acb5855403b20b312bf3a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 5 Aug 2021 16:49:40 +0200 Subject: [PATCH] fix(rn,video-quality) fix not selecting any endpoint on mobile The concept of "visible participants" is not yet implemented. --- react/features/video-quality/subscriber.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/react/features/video-quality/subscriber.js b/react/features/video-quality/subscriber.js index 8722e61d0..5fd66e4bf 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 },