@stream-io/video-client 1.0.2 → 1.0.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/CHANGELOG.md +7 -0
- package/dist/index.browser.es.js +30 -14
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +30 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +30 -14
- package/dist/index.es.js.map +1 -1
- package/dist/src/devices/InputMediaDeviceManager.d.ts +2 -2
- package/package.json +1 -1
- package/src/Call.ts +4 -1
- package/src/devices/InputMediaDeviceManager.ts +1 -1
- package/src/rtc/Publisher.ts +17 -14
- package/src/rtc/Subscriber.ts +19 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [1.0.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.2...@stream-io/video-client-1.0.3) (2024-05-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* improve error handling across the SDK ([#1350](https://github.com/GetStream/stream-video-js/issues/1350)) ([ac0ae3b](https://github.com/GetStream/stream-video-js/commit/ac0ae3b7d5da91152d0f41a203b73e6c99c42ff9))
|
|
11
|
+
|
|
5
12
|
### [1.0.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.1...@stream-io/video-client-1.0.2) (2024-05-13)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -8399,15 +8399,19 @@ class Publisher {
|
|
|
8399
8399
|
return getPreferredCodecs('audio', preferredCodec ?? defaultAudioCodec, codecToRemove);
|
|
8400
8400
|
}
|
|
8401
8401
|
};
|
|
8402
|
-
this.onIceCandidate =
|
|
8402
|
+
this.onIceCandidate = (e) => {
|
|
8403
8403
|
const { candidate } = e;
|
|
8404
8404
|
if (!candidate) {
|
|
8405
8405
|
logger$3('debug', 'null ice candidate');
|
|
8406
8406
|
return;
|
|
8407
8407
|
}
|
|
8408
|
-
|
|
8408
|
+
this.sfuClient
|
|
8409
|
+
.iceTrickle({
|
|
8409
8410
|
iceCandidate: getIceCandidate(candidate),
|
|
8410
8411
|
peerType: PeerType.PUBLISHER_UNSPECIFIED,
|
|
8412
|
+
})
|
|
8413
|
+
.catch((err) => {
|
|
8414
|
+
logger$3('warn', `ICETrickle failed`, err);
|
|
8411
8415
|
});
|
|
8412
8416
|
};
|
|
8413
8417
|
/**
|
|
@@ -8448,8 +8452,8 @@ class Publisher {
|
|
|
8448
8452
|
}
|
|
8449
8453
|
await this.negotiate({ iceRestart: true });
|
|
8450
8454
|
};
|
|
8451
|
-
this.onNegotiationNeeded =
|
|
8452
|
-
|
|
8455
|
+
this.onNegotiationNeeded = () => {
|
|
8456
|
+
this.negotiate().catch((err) => logger$3('warn', `Negotiation failed.`, err));
|
|
8453
8457
|
};
|
|
8454
8458
|
/**
|
|
8455
8459
|
* Initiates a new offer/answer exchange with the currently connected SFU.
|
|
@@ -8639,10 +8643,12 @@ class Publisher {
|
|
|
8639
8643
|
this.isDtxEnabled = isDtxEnabled;
|
|
8640
8644
|
this.isRedEnabled = isRedEnabled;
|
|
8641
8645
|
this.iceRestartDelay = iceRestartDelay;
|
|
8642
|
-
this.unsubscribeOnIceRestart = dispatcher.on('iceRestart',
|
|
8646
|
+
this.unsubscribeOnIceRestart = dispatcher.on('iceRestart', (iceRestart) => {
|
|
8643
8647
|
if (iceRestart.peerType !== PeerType.PUBLISHER_UNSPECIFIED)
|
|
8644
8648
|
return;
|
|
8645
|
-
|
|
8649
|
+
this.restartIce().catch((err) => {
|
|
8650
|
+
logger$3('warn', `ICERestart failed`, err);
|
|
8651
|
+
});
|
|
8646
8652
|
});
|
|
8647
8653
|
}
|
|
8648
8654
|
}
|
|
@@ -8836,15 +8842,19 @@ class Subscriber {
|
|
|
8836
8842
|
[streamKindProp]: primaryStream,
|
|
8837
8843
|
});
|
|
8838
8844
|
};
|
|
8839
|
-
this.onIceCandidate =
|
|
8845
|
+
this.onIceCandidate = (e) => {
|
|
8840
8846
|
const { candidate } = e;
|
|
8841
8847
|
if (!candidate) {
|
|
8842
8848
|
logger$2('debug', 'null ice candidate');
|
|
8843
8849
|
return;
|
|
8844
8850
|
}
|
|
8845
|
-
|
|
8851
|
+
this.sfuClient
|
|
8852
|
+
.iceTrickle({
|
|
8846
8853
|
iceCandidate: getIceCandidate(candidate),
|
|
8847
8854
|
peerType: PeerType.SUBSCRIBER,
|
|
8855
|
+
})
|
|
8856
|
+
.catch((err) => {
|
|
8857
|
+
logger$2('warn', `ICETrickle failed`, err);
|
|
8848
8858
|
});
|
|
8849
8859
|
};
|
|
8850
8860
|
this.negotiate = async (subscriberOffer) => {
|
|
@@ -8916,13 +8926,17 @@ class Subscriber {
|
|
|
8916
8926
|
this.state = state;
|
|
8917
8927
|
this.iceRestartDelay = iceRestartDelay;
|
|
8918
8928
|
this.pc = this.createPeerConnection(connectionConfig);
|
|
8919
|
-
this.unregisterOnSubscriberOffer = dispatcher.on('subscriberOffer',
|
|
8920
|
-
|
|
8929
|
+
this.unregisterOnSubscriberOffer = dispatcher.on('subscriberOffer', (subscriberOffer) => {
|
|
8930
|
+
this.negotiate(subscriberOffer).catch((err) => {
|
|
8931
|
+
logger$2('warn', `Negotiation failed.`, err);
|
|
8932
|
+
});
|
|
8921
8933
|
});
|
|
8922
|
-
this.unregisterOnIceRestart = dispatcher.on('iceRestart',
|
|
8934
|
+
this.unregisterOnIceRestart = dispatcher.on('iceRestart', (iceRestart) => {
|
|
8923
8935
|
if (iceRestart.peerType !== PeerType.SUBSCRIBER)
|
|
8924
8936
|
return;
|
|
8925
|
-
|
|
8937
|
+
this.restartIce().catch((err) => {
|
|
8938
|
+
logger$2('warn', `ICERestart failed`, err);
|
|
8939
|
+
});
|
|
8926
8940
|
});
|
|
8927
8941
|
}
|
|
8928
8942
|
}
|
|
@@ -13488,7 +13502,9 @@ class Call {
|
|
|
13488
13502
|
});
|
|
13489
13503
|
this.leaveCallHooks.add(registerEventHandlers(this, this.state, this.dispatcher));
|
|
13490
13504
|
this.registerEffects();
|
|
13491
|
-
this.leaveCallHooks.add(createSubscription(this.trackSubscriptionsSubject.pipe(debounce((v) => timer(v.type)), map$1((v) => v.data)), (subscriptions) => this.sfuClient?.updateSubscriptions(subscriptions))
|
|
13505
|
+
this.leaveCallHooks.add(createSubscription(this.trackSubscriptionsSubject.pipe(debounce((v) => timer(v.type)), map$1((v) => v.data)), (subscriptions) => this.sfuClient?.updateSubscriptions(subscriptions).catch((err) => {
|
|
13506
|
+
this.logger('debug', `Failed to update track subscriptions`, err);
|
|
13507
|
+
})));
|
|
13492
13508
|
this.camera = new CameraManager(this);
|
|
13493
13509
|
this.microphone = new MicrophoneManager(this);
|
|
13494
13510
|
this.speaker = new SpeakerManager(this);
|
|
@@ -15177,7 +15193,7 @@ class StreamClient {
|
|
|
15177
15193
|
});
|
|
15178
15194
|
};
|
|
15179
15195
|
this.getUserAgent = () => {
|
|
15180
|
-
const version = "1.0.
|
|
15196
|
+
const version = "1.0.3" ;
|
|
15181
15197
|
return (this.userAgent ||
|
|
15182
15198
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
15183
15199
|
};
|