@stream-io/video-client 1.18.6 → 1.18.7
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/CHANGELOG.md +8 -0
- package/dist/index.browser.es.js +7 -6
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +7 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -6
- package/dist/index.es.js.map +1 -1
- package/dist/src/coordinator/connection/types.d.ts +2 -2
- package/dist/src/rtc/BasePeerConnection.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +5 -2
- package/src/coordinator/connection/types.ts +2 -2
- package/src/rtc/BasePeerConnection.ts +2 -2
package/dist/index.es.js
CHANGED
|
@@ -5248,7 +5248,7 @@ class BasePeerConnection {
|
|
|
5248
5248
|
this.logger('debug', 'null ice candidate');
|
|
5249
5249
|
return;
|
|
5250
5250
|
}
|
|
5251
|
-
const iceCandidate = this.
|
|
5251
|
+
const iceCandidate = this.asJSON(candidate);
|
|
5252
5252
|
this.sfuClient
|
|
5253
5253
|
.iceTrickle({ peerType: this.peerType, iceCandidate })
|
|
5254
5254
|
.catch((err) => {
|
|
@@ -5260,7 +5260,7 @@ class BasePeerConnection {
|
|
|
5260
5260
|
/**
|
|
5261
5261
|
* Converts the ICE candidate to a JSON string.
|
|
5262
5262
|
*/
|
|
5263
|
-
this.
|
|
5263
|
+
this.asJSON = (candidate) => {
|
|
5264
5264
|
if (!candidate.usernameFragment) {
|
|
5265
5265
|
// react-native-webrtc doesn't include usernameFragment in the candidate
|
|
5266
5266
|
const segments = candidate.candidate.split(' ');
|
|
@@ -7433,7 +7433,7 @@ const aggregate = (stats) => {
|
|
|
7433
7433
|
return report;
|
|
7434
7434
|
};
|
|
7435
7435
|
|
|
7436
|
-
const version = "1.18.
|
|
7436
|
+
const version = "1.18.7";
|
|
7437
7437
|
const [major, minor, patch] = version.split('.');
|
|
7438
7438
|
let sdkInfo = {
|
|
7439
7439
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -10404,7 +10404,7 @@ class Call {
|
|
|
10404
10404
|
}
|
|
10405
10405
|
if (callingState === CallingState.RINGING && reject !== false) {
|
|
10406
10406
|
if (reject) {
|
|
10407
|
-
await this.reject(
|
|
10407
|
+
await this.reject('decline');
|
|
10408
10408
|
}
|
|
10409
10409
|
else {
|
|
10410
10410
|
// if reject was undefined, we still have to cancel the call automatically
|
|
@@ -10434,6 +10434,7 @@ class Call {
|
|
|
10434
10434
|
this.initialized = false;
|
|
10435
10435
|
this.hasJoinedOnce = false;
|
|
10436
10436
|
this.ringingSubject.next(false);
|
|
10437
|
+
this.cancelAutoDrop();
|
|
10437
10438
|
this.clientStore.unregisterCall(this);
|
|
10438
10439
|
this.camera.dispose();
|
|
10439
10440
|
this.microphone.dispose();
|
|
@@ -10572,7 +10573,7 @@ class Call {
|
|
|
10572
10573
|
*
|
|
10573
10574
|
* @param reason the reason for rejecting the call.
|
|
10574
10575
|
*/
|
|
10575
|
-
this.reject = async (reason) => {
|
|
10576
|
+
this.reject = async (reason = 'decline') => {
|
|
10576
10577
|
return this.streamClient.post(`${this.streamClientBasePath}/reject`, { reason: reason });
|
|
10577
10578
|
};
|
|
10578
10579
|
/**
|
|
@@ -13070,7 +13071,7 @@ class StreamClient {
|
|
|
13070
13071
|
this.getUserAgent = () => {
|
|
13071
13072
|
if (!this.cachedUserAgent) {
|
|
13072
13073
|
const { clientAppIdentifier = {} } = this.options;
|
|
13073
|
-
const { sdkName = 'js', sdkVersion = "1.18.
|
|
13074
|
+
const { sdkName = 'js', sdkVersion = "1.18.7", ...extras } = clientAppIdentifier;
|
|
13074
13075
|
this.cachedUserAgent = [
|
|
13075
13076
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
13076
13077
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|