From f196409ebc5dfa4a5a4d9bd8c606e1bac446464c Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Tue, 19 Nov 2024 10:09:14 +0100 Subject: [PATCH] fix: add a feature flag in pronto --- packages/client/src/helpers/__tests__/sdp-munging.test.ts | 1 - sample-apps/react/react-dogfood/components/MeetingUI.tsx | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/helpers/__tests__/sdp-munging.test.ts b/packages/client/src/helpers/__tests__/sdp-munging.test.ts index 71d16ecfd2..5dde7c6b60 100644 --- a/packages/client/src/helpers/__tests__/sdp-munging.test.ts +++ b/packages/client/src/helpers/__tests__/sdp-munging.test.ts @@ -89,7 +89,6 @@ a=rtcp-rsize`; sdpFmtpLine: 'profile-id=0', }); expect(target).toContain('VP9'); - expect(target).toEqual(sdp); expect(target).not.toContain('profile-id=2'); }); }); diff --git a/sample-apps/react/react-dogfood/components/MeetingUI.tsx b/sample-apps/react/react-dogfood/components/MeetingUI.tsx index 7b74d416d6..34176ee561 100644 --- a/sample-apps/react/react-dogfood/components/MeetingUI.tsx +++ b/sample-apps/react/react-dogfood/components/MeetingUI.tsx @@ -50,6 +50,7 @@ export const MeetingUI = ({ chatClient, mode }: MeetingUIProps) => { | PreferredCodec | undefined; const bitrateOverride = router.query['bitrate'] as string | undefined; + const forceSingleCodec = router.query['force_single_codec'] === 'true'; const bitrateFactorOverride = router.query['bitrate_factor'] as | string | undefined; @@ -72,6 +73,7 @@ export const MeetingUI = ({ chatClient, mode }: MeetingUIProps) => { call.updatePublishOptions({ preferredCodec: 'vp9', forceCodec: videoCodecOverride, + forceSingleCodec, scalabilityMode, preferredBitrate, bitrateDownscaleFactor: bitrateFactorOverride @@ -94,6 +96,8 @@ export const MeetingUI = ({ chatClient, mode }: MeetingUIProps) => { bitrateFactorOverride, bitrateOverride, call, + forceSingleCodec, + maxSimulcastLayers, scalabilityMode, videoCodecOverride, ],