diff --git a/CHANGELOG.md b/CHANGELOG.md index 448ca1ab74..b295b0b45f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Set max bitrate to 1500kbps. - Add resolution constraint to content share (1080p@30fps). - Added opt-in server side network adaption enablement flag `ServerSideNetworkAdaption.BandwidthProbingAndRemoteVideoQualityAdaption`. See [this section in the guide](https://aws.github.io/amazon-chime-sdk-js/modules/prioritybased_downlink_policy.html#server-side-network-adaption) for more details. +- Content share issue with above change ### Removed diff --git a/src/videouplinkbandwidthpolicy/NScaleVideoUplinkBandwidthPolicy.ts b/src/videouplinkbandwidthpolicy/NScaleVideoUplinkBandwidthPolicy.ts index 244121670f..10a14b949f 100644 --- a/src/videouplinkbandwidthpolicy/NScaleVideoUplinkBandwidthPolicy.ts +++ b/src/videouplinkbandwidthpolicy/NScaleVideoUplinkBandwidthPolicy.ts @@ -45,7 +45,7 @@ export default class NScaleVideoUplinkBandwidthPolicy implements VideoUplinkBand 180, ]; - private numberOfPublishedVideoSources: number | undefined = 0; + private numberOfPublishedVideoSources: number | undefined = undefined; private optimalParameters: DefaultVideoAndEncodeParameter; private parametersInEffect: DefaultVideoAndEncodeParameter; private idealMaxBandwidthKbps = 1500; @@ -64,7 +64,7 @@ export default class NScaleVideoUplinkBandwidthPolicy implements VideoUplinkBand reset(): void { // Don't reset `idealMaxBandwidthKbps` or `hasBandwidthPriority` which are set via builder API paths - this.numberOfPublishedVideoSources = 0; + this.numberOfPublishedVideoSources = undefined; this.optimalParameters = new DefaultVideoAndEncodeParameter(0, 0, 0, 0, false); this.parametersInEffect = new DefaultVideoAndEncodeParameter(0, 0, 0, 0, false); this.encodingParamMap.set(NScaleVideoUplinkBandwidthPolicy.encodingMapKey, {