From fad5ac904865a4034f398cdd21216ac7c338aa6c Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Fri, 19 Nov 2021 11:17:54 -0500 Subject: [PATCH] feat(video-quality): Always prioritize SS in tile view. --- react/features/video-quality/subscriber.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react/features/video-quality/subscriber.js b/react/features/video-quality/subscriber.js index c8499d575..bd44a65f1 100644 --- a/react/features/video-quality/subscriber.js +++ b/react/features/video-quality/subscriber.js @@ -191,6 +191,7 @@ function _updateReceiverVideoConstraints({ getState }) { const { maxReceiverVideoQuality, preferredVideoQuality } = state['features/video-quality']; const { participantId: largeVideoParticipantId } = state['features/large-video']; const maxFrameHeight = Math.min(maxReceiverVideoQuality, preferredVideoQuality); + const { remoteScreenShares } = state['features/video-layout']; const { visibleRemoteParticipants } = state['features/filmstrip']; const receiverConstraints = { @@ -211,6 +212,9 @@ function _updateReceiverVideoConstraints({ getState }) { receiverConstraints.constraints[participantId] = { 'maxHeight': maxFrameHeight }; }); + // Prioritize screenshare in tile view. + remoteScreenShares?.length && (receiverConstraints.selectedEndpoints = remoteScreenShares); + // Stage view. } else { if (!visibleRemoteParticipants?.size && !largeVideoParticipantId) {