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

The concept of "visible participants" is not yet implemented.
This commit is contained in:
Saúl Ibarra Corretgé 2021-08-05 16:49:40 +02:00 committed by Saúl Ibarra Corretgé
parent dda1f3c5ba
commit 0419c5a15b
1 changed files with 7 additions and 1 deletions

View File

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