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:
parent
dda1f3c5ba
commit
0419c5a15b
|
@ -189,9 +189,15 @@ function _updateReceiverVideoConstraints({ getState }) {
|
||||||
}
|
}
|
||||||
const { lastN } = state['features/base/lastn'];
|
const { lastN } = state['features/base/lastn'];
|
||||||
const { maxReceiverVideoQuality, preferredVideoQuality } = state['features/video-quality'];
|
const { maxReceiverVideoQuality, preferredVideoQuality } = state['features/video-quality'];
|
||||||
const { visibleParticipants } = state['features/filmstrip'];
|
|
||||||
const { participantId: largeVideoParticipantId } = state['features/large-video'];
|
const { participantId: largeVideoParticipantId } = state['features/large-video'];
|
||||||
const maxFrameHeight = Math.min(maxReceiverVideoQuality, preferredVideoQuality);
|
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 = {
|
const receiverConstraints = {
|
||||||
constraints: {},
|
constraints: {},
|
||||||
defaultConstraints: { 'maxHeight': VIDEO_QUALITY_LEVELS.NONE },
|
defaultConstraints: { 'maxHeight': VIDEO_QUALITY_LEVELS.NONE },
|
||||||
|
|
Loading…
Reference in New Issue