@stream-io/video-client 1.37.2 → 1.37.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -6020,7 +6020,7 @@ const getSdkVersion = (sdk) => {
6020
6020
  return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
6021
6021
  };
6022
6022
 
6023
- const version = "1.37.2";
6023
+ const version = "1.37.3";
6024
6024
  const [major, minor, patch] = version.split('.');
6025
6025
  let sdkInfo = {
6026
6026
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -11285,7 +11285,9 @@ class MicrophoneManager extends AudioDeviceManager {
11285
11285
  })
11286
11286
  .then((canAutoEnable) => {
11287
11287
  if (canAutoEnable) {
11288
- this.noiseCancellation?.enable();
11288
+ this.noiseCancellation?.enable().catch((err) => {
11289
+ this.logger.warn('Failed to enable noise cancellation', err);
11290
+ });
11289
11291
  }
11290
11292
  })
11291
11293
  .catch((err) => {
@@ -11355,7 +11357,9 @@ class MicrophoneManager extends AudioDeviceManager {
11355
11357
  canAutoEnable = await noiseCancellation.canAutoEnable();
11356
11358
  }
11357
11359
  if (canAutoEnable) {
11358
- noiseCancellation.enable();
11360
+ noiseCancellation.enable().catch((err) => {
11361
+ this.logger.warn('Failed to enable noise cancellation', err);
11362
+ });
11359
11363
  }
11360
11364
  }
11361
11365
  }
@@ -11435,10 +11439,14 @@ class MicrophoneManager extends AudioDeviceManager {
11435
11439
  if (this.noiseCancellation) {
11436
11440
  const disableAudioProcessing = profile === AudioBitrateProfile.MUSIC_HIGH_QUALITY;
11437
11441
  if (disableAudioProcessing) {
11438
- this.noiseCancellation.disable(); // disable for high quality music mode
11442
+ this.noiseCancellation.disable().catch((err) => {
11443
+ this.logger.warn('Failed to disable noise cancellation for music mode', err);
11444
+ }); // disable for high quality music mode
11439
11445
  }
11440
11446
  else {
11441
- this.noiseCancellation.enable(); // restore it for other modes if available
11447
+ this.noiseCancellation.enable().catch((err) => {
11448
+ this.logger.warn('Failed to enable noise cancellation', err);
11449
+ }); // restore it for other modes if available
11442
11450
  }
11443
11451
  }
11444
11452
  }
@@ -14928,7 +14936,7 @@ class StreamClient {
14928
14936
  this.getUserAgent = () => {
14929
14937
  if (!this.cachedUserAgent) {
14930
14938
  const { clientAppIdentifier = {} } = this.options;
14931
- const { sdkName = 'js', sdkVersion = "1.37.2", ...extras } = clientAppIdentifier;
14939
+ const { sdkName = 'js', sdkVersion = "1.37.3", ...extras } = clientAppIdentifier;
14932
14940
  this.cachedUserAgent = [
14933
14941
  `stream-video-${sdkName}-v${sdkVersion}`,
14934
14942
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),