@stream-io/video-client 1.44.0 → 1.44.1-beta.1

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
@@ -6251,7 +6251,7 @@ const getSdkVersion = (sdk) => {
6251
6251
  return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
6252
6252
  };
6253
6253
 
6254
- const version = "1.44.0";
6254
+ const version = "1.44.1-beta.1";
6255
6255
  const [major, minor, patch] = version.split('.');
6256
6256
  let sdkInfo = {
6257
6257
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -12964,7 +12964,8 @@ class Call {
12964
12964
  // const calls = useCalls().filter((c) => c.ringing);
12965
12965
  const calls = this.clientStore.calls.filter((c) => c.cid !== this.cid);
12966
12966
  this.clientStore.setCalls([this, ...calls]);
12967
- await this.applyDeviceConfig(settings, false);
12967
+ const skipSpeakerApply = isReactNative() && true;
12968
+ await this.applyDeviceConfig(settings, false, skipSpeakerApply);
12968
12969
  };
12969
12970
  /**
12970
12971
  * Loads the information about the call.
@@ -12987,7 +12988,10 @@ class Call {
12987
12988
  this.watching = true;
12988
12989
  this.clientStore.registerOrUpdateCall(this);
12989
12990
  }
12990
- await this.applyDeviceConfig(response.call.settings, false);
12991
+ const skipSpeakerApply = isReactNative()
12992
+ ? (params?.ring ?? this.ringing)
12993
+ : false;
12994
+ await this.applyDeviceConfig(response.call.settings, false, skipSpeakerApply);
12991
12995
  return response;
12992
12996
  };
12993
12997
  /**
@@ -13008,7 +13012,10 @@ class Call {
13008
13012
  this.watching = true;
13009
13013
  this.clientStore.registerOrUpdateCall(this);
13010
13014
  }
13011
- await this.applyDeviceConfig(response.call.settings, false);
13015
+ const skipSpeakerApply = isReactNative()
13016
+ ? (data?.ring ?? this.ringing)
13017
+ : false;
13018
+ await this.applyDeviceConfig(response.call.settings, false, skipSpeakerApply);
13012
13019
  return response;
13013
13020
  };
13014
13021
  /**
@@ -14521,8 +14528,10 @@ class Call {
14521
14528
  *
14522
14529
  * @internal
14523
14530
  */
14524
- this.applyDeviceConfig = async (settings, publish) => {
14525
- this.speaker.apply(settings);
14531
+ this.applyDeviceConfig = async (settings, publish, skipSpeakerApply = false) => {
14532
+ if (!skipSpeakerApply) {
14533
+ this.speaker.apply(settings);
14534
+ }
14526
14535
  await this.camera.apply(settings.video, publish).catch((err) => {
14527
14536
  this.logger.warn('Camera init failed', err);
14528
14537
  });
@@ -15835,7 +15844,7 @@ class StreamClient {
15835
15844
  this.getUserAgent = () => {
15836
15845
  if (!this.cachedUserAgent) {
15837
15846
  const { clientAppIdentifier = {} } = this.options;
15838
- const { sdkName = 'js', sdkVersion = "1.44.0", ...extras } = clientAppIdentifier;
15847
+ const { sdkName = 'js', sdkVersion = "1.44.1-beta.1", ...extras } = clientAppIdentifier;
15839
15848
  this.cachedUserAgent = [
15840
15849
  `stream-video-${sdkName}-v${sdkVersion}`,
15841
15850
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),