feat(video-quality): Always prioritize SS in tile view.
This commit is contained in:
parent
10d54498d0
commit
fad5ac9048
|
@ -191,6 +191,7 @@ function _updateReceiverVideoConstraints({ getState }) {
|
||||||
const { maxReceiverVideoQuality, preferredVideoQuality } = state['features/video-quality'];
|
const { maxReceiverVideoQuality, preferredVideoQuality } = state['features/video-quality'];
|
||||||
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);
|
||||||
|
const { remoteScreenShares } = state['features/video-layout'];
|
||||||
const { visibleRemoteParticipants } = state['features/filmstrip'];
|
const { visibleRemoteParticipants } = state['features/filmstrip'];
|
||||||
|
|
||||||
const receiverConstraints = {
|
const receiverConstraints = {
|
||||||
|
@ -211,6 +212,9 @@ function _updateReceiverVideoConstraints({ getState }) {
|
||||||
receiverConstraints.constraints[participantId] = { 'maxHeight': maxFrameHeight };
|
receiverConstraints.constraints[participantId] = { 'maxHeight': maxFrameHeight };
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Prioritize screenshare in tile view.
|
||||||
|
remoteScreenShares?.length && (receiverConstraints.selectedEndpoints = remoteScreenShares);
|
||||||
|
|
||||||
// Stage view.
|
// Stage view.
|
||||||
} else {
|
} else {
|
||||||
if (!visibleRemoteParticipants?.size && !largeVideoParticipantId) {
|
if (!visibleRemoteParticipants?.size && !largeVideoParticipantId) {
|
||||||
|
|
Loading…
Reference in New Issue