From 3816f4b535bb8f126968793a60f823682d863caa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:47:07 +1000 Subject: [PATCH] Remove unit conversion for bitrate from URL. URL is already in kbps (#369) (#372) (cherry picked from commit eb9a665a0a4333eccc616acaade2ccf5e653b0aa) Co-authored-by: William Belcher --- Frontend/library/src/PixelStreaming/PixelStreaming.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frontend/library/src/PixelStreaming/PixelStreaming.ts b/Frontend/library/src/PixelStreaming/PixelStreaming.ts index c2c39944..5b9d3908 100644 --- a/Frontend/library/src/PixelStreaming/PixelStreaming.ts +++ b/Frontend/library/src/PixelStreaming/PixelStreaming.ts @@ -603,13 +603,13 @@ export class PixelStreaming { this.config.setNumericSetting( NumericParameters.WebRTCMinBitrate, (useUrlParams && urlParams.has(NumericParameters.WebRTCMinBitrate)) - ? Number.parseInt(urlParams.get(NumericParameters.WebRTCMinBitrate)) / 1000 /* bps to kbps */ + ? Number.parseInt(urlParams.get(NumericParameters.WebRTCMinBitrate)) : settings.WebRTCSettings.MinBitrate / 1000 /* bps to kbps */ ); this.config.setNumericSetting( NumericParameters.WebRTCMaxBitrate, (useUrlParams && urlParams.has(NumericParameters.WebRTCMaxBitrate)) - ? Number.parseInt(urlParams.get(NumericParameters.WebRTCMaxBitrate)) / 1000 /* bps to kbps */ + ? Number.parseInt(urlParams.get(NumericParameters.WebRTCMaxBitrate)) : settings.WebRTCSettings.MaxBitrate / 1000 /* bps to kbps */ );