From f525fb1999caae8a67f2147b600ad16d654f49f7 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Fri, 22 Mar 2024 15:08:23 -0400 Subject: [PATCH] fix(video-quality): Correctly pin camera tile. When screensharing source is the first source to be added with ssrc-rewriting enabled, constraints for the camera tile don't get updated when its pinned. Fixes https://github.com/jitsi/jitsi-meet/issues/14501 --- react/features/video-quality/subscriber.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/react/features/video-quality/subscriber.ts b/react/features/video-quality/subscriber.ts index be8f98200ac..4ccdccaf834 100644 --- a/react/features/video-quality/subscriber.ts +++ b/react/features/video-quality/subscriber.ts @@ -428,9 +428,7 @@ function _updateReceiverVideoConstraints({ getState }: IStore) { if (remoteScreenShares.includes(largeVideoParticipantId)) { largeVideoSourceName = largeVideoParticipantId; } else { - largeVideoSourceName = getSsrcRewritingFeatureFlag(state) - ? getSourceNamesByMediaType(state, largeVideoParticipantId, MEDIA_TYPE.VIDEO)?.[0] - : getTrackSourceNameByMediaTypeAndParticipant( + largeVideoSourceName = getTrackSourceNameByMediaTypeAndParticipant( tracks, MEDIA_TYPE.VIDEO, largeVideoParticipantId); } }