@stream-io/video-client 1.18.8 → 1.18.9

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.18.9](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.18.8...@stream-io/video-client-1.18.9) (2025-04-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * pick correct device for speaking while muted detection ([#1744](https://github.com/GetStream/stream-video-js/issues/1744)) ([33044f5](https://github.com/GetStream/stream-video-js/commit/33044f56ec7debba2e14d5a87dde9eaa87a02089)), closes [#1538](https://github.com/GetStream/stream-video-js/issues/1538)
11
+ * reset the call state value when "live" ends ([#1740](https://github.com/GetStream/stream-video-js/issues/1740)) ([2123a10](https://github.com/GetStream/stream-video-js/commit/2123a104bb790a7384506fd475b779c02b116edd))
12
+
5
13
  ## [1.18.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.18.7...@stream-io/video-client-1.18.8) (2025-04-01)
6
14
 
7
15
 
@@ -4401,6 +4401,13 @@ class CallState {
4401
4401
  this.setOwnCapabilities = (capabilities) => {
4402
4402
  return this.setCurrentValue(this.ownCapabilitiesSubject, capabilities);
4403
4403
  };
4404
+ /**
4405
+ * Sets the backstage state.
4406
+ * @param backstage the backstage state.
4407
+ */
4408
+ this.setBackstage = (backstage) => {
4409
+ return this.setCurrentValue(this.backstageSubject, backstage);
4410
+ };
4404
4411
  /**
4405
4412
  * Sets the time when this call has been ended.
4406
4413
  * @param endedAt the time when this call has been ended.
@@ -4623,7 +4630,7 @@ class CallState {
4623
4630
  * @param call the call response from the server.
4624
4631
  */
4625
4632
  this.updateFromCallResponse = (call) => {
4626
- this.setCurrentValue(this.backstageSubject, call.backstage);
4633
+ this.setBackstage(call.backstage);
4627
4634
  this.setCurrentValue(this.blockedUserIdsSubject, call.blocked_user_ids);
4628
4635
  this.setCurrentValue(this.createdAtSubject, new Date(call.created_at));
4629
4636
  this.setCurrentValue(this.updatedAtSubject, new Date(call.updated_at));
@@ -6827,6 +6834,7 @@ const watchLiveEnded = (dispatcher, call) => {
6827
6834
  return dispatcher.on('error', (e) => {
6828
6835
  if (e.error && e.error.code !== ErrorCode.LIVE_ENDED)
6829
6836
  return;
6837
+ call.state.setBackstage(true);
6830
6838
  if (!call.permissionsContext.hasPermission(OwnCapability.JOIN_BACKSTAGE)) {
6831
6839
  call.leave({ reason: 'live ended' }).catch((err) => {
6832
6840
  call.logger('error', 'Failed to leave call after live ended', err);
@@ -7431,7 +7439,7 @@ const aggregate = (stats) => {
7431
7439
  return report;
7432
7440
  };
7433
7441
 
7434
- const version = "1.18.8";
7442
+ const version = "1.18.9";
7435
7443
  const [major, minor, patch] = version.split('.');
7436
7444
  let sdkInfo = {
7437
7445
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -9856,7 +9864,7 @@ class MicrophoneManager extends InputMediaDeviceManager {
9856
9864
  else {
9857
9865
  // Need to start a new stream that's not connected to publisher
9858
9866
  const stream = await this.getStream({
9859
- deviceId,
9867
+ deviceId: { exact: deviceId },
9860
9868
  });
9861
9869
  this.soundDetectorCleanup = createSoundDetector(stream, (event) => {
9862
9870
  this.state.setSpeakingWhileMuted(event.isSoundDetected);
@@ -13107,7 +13115,7 @@ class StreamClient {
13107
13115
  this.getUserAgent = () => {
13108
13116
  if (!this.cachedUserAgent) {
13109
13117
  const { clientAppIdentifier = {} } = this.options;
13110
- const { sdkName = 'js', sdkVersion = "1.18.8", ...extras } = clientAppIdentifier;
13118
+ const { sdkName = 'js', sdkVersion = "1.18.9", ...extras } = clientAppIdentifier;
13111
13119
  this.cachedUserAgent = [
13112
13120
  `stream-video-${sdkName}-v${sdkVersion}`,
13113
13121
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),