@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.es.js CHANGED
@@ -6232,7 +6232,7 @@ const getSdkVersion = (sdk) => {
6232
6232
  return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
6233
6233
  };
6234
6234
 
6235
- const version = "1.44.0";
6235
+ const version = "1.44.1-beta.1";
6236
6236
  const [major, minor, patch] = version.split('.');
6237
6237
  let sdkInfo = {
6238
6238
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -12945,7 +12945,8 @@ class Call {
12945
12945
  // const calls = useCalls().filter((c) => c.ringing);
12946
12946
  const calls = this.clientStore.calls.filter((c) => c.cid !== this.cid);
12947
12947
  this.clientStore.setCalls([this, ...calls]);
12948
- await this.applyDeviceConfig(settings, false);
12948
+ const skipSpeakerApply = isReactNative() && true;
12949
+ await this.applyDeviceConfig(settings, false, skipSpeakerApply);
12949
12950
  };
12950
12951
  /**
12951
12952
  * Loads the information about the call.
@@ -12968,7 +12969,10 @@ class Call {
12968
12969
  this.watching = true;
12969
12970
  this.clientStore.registerOrUpdateCall(this);
12970
12971
  }
12971
- await this.applyDeviceConfig(response.call.settings, false);
12972
+ const skipSpeakerApply = isReactNative()
12973
+ ? (params?.ring ?? this.ringing)
12974
+ : false;
12975
+ await this.applyDeviceConfig(response.call.settings, false, skipSpeakerApply);
12972
12976
  return response;
12973
12977
  };
12974
12978
  /**
@@ -12989,7 +12993,10 @@ class Call {
12989
12993
  this.watching = true;
12990
12994
  this.clientStore.registerOrUpdateCall(this);
12991
12995
  }
12992
- await this.applyDeviceConfig(response.call.settings, false);
12996
+ const skipSpeakerApply = isReactNative()
12997
+ ? (data?.ring ?? this.ringing)
12998
+ : false;
12999
+ await this.applyDeviceConfig(response.call.settings, false, skipSpeakerApply);
12993
13000
  return response;
12994
13001
  };
12995
13002
  /**
@@ -14502,8 +14509,10 @@ class Call {
14502
14509
  *
14503
14510
  * @internal
14504
14511
  */
14505
- this.applyDeviceConfig = async (settings, publish) => {
14506
- this.speaker.apply(settings);
14512
+ this.applyDeviceConfig = async (settings, publish, skipSpeakerApply = false) => {
14513
+ if (!skipSpeakerApply) {
14514
+ this.speaker.apply(settings);
14515
+ }
14507
14516
  await this.camera.apply(settings.video, publish).catch((err) => {
14508
14517
  this.logger.warn('Camera init failed', err);
14509
14518
  });
@@ -15816,7 +15825,7 @@ class StreamClient {
15816
15825
  this.getUserAgent = () => {
15817
15826
  if (!this.cachedUserAgent) {
15818
15827
  const { clientAppIdentifier = {} } = this.options;
15819
- const { sdkName = 'js', sdkVersion = "1.44.0", ...extras } = clientAppIdentifier;
15828
+ const { sdkName = 'js', sdkVersion = "1.44.1-beta.1", ...extras } = clientAppIdentifier;
15820
15829
  this.cachedUserAgent = [
15821
15830
  `stream-video-${sdkName}-v${sdkVersion}`,
15822
15831
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),