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