@stream-io/video-client 1.15.0 → 1.15.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/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.15.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.15.0...@stream-io/video-client-1.15.1) (2025-01-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * update mute state only for video track on mobile ([#1645](https://github.com/GetStream/stream-video-js/issues/1645)) ([c0507cb](https://github.com/GetStream/stream-video-js/commit/c0507cb02e0058b8b968237220234771c9a30e6f)), closes [#1527](https://github.com/GetStream/stream-video-js/issues/1527)
11
+
5
12
  ## [1.15.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.14.0...@stream-io/video-client-1.15.0) (2025-01-15)
6
13
 
7
14
 
@@ -7346,7 +7346,7 @@ const aggregate = (stats) => {
7346
7346
  return report;
7347
7347
  };
7348
7348
 
7349
- const version = "1.15.0";
7349
+ const version = "1.15.1";
7350
7350
  const [major, minor, patch] = version.split('.');
7351
7351
  let sdkInfo = {
7352
7352
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -8571,6 +8571,14 @@ const disposeOfMediaStream = (stream) => {
8571
8571
  }
8572
8572
  };
8573
8573
 
8574
+ /**
8575
+ * Checks if the current platform is a mobile device.
8576
+ *
8577
+ * See:
8578
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent
8579
+ */
8580
+ const isMobile = () => /Mobi/i.test(navigator.userAgent);
8581
+
8574
8582
  class InputMediaDeviceManager {
8575
8583
  constructor(call, state, trackType) {
8576
8584
  this.call = call;
@@ -8913,6 +8921,8 @@ class InputMediaDeviceManager {
8913
8921
  }
8914
8922
  };
8915
8923
  const createTrackMuteHandler = (muted) => () => {
8924
+ if (!isMobile() || this.trackType !== TrackType.VIDEO)
8925
+ return;
8916
8926
  this.call.notifyTrackMuteState(muted, this.trackType).catch((err) => {
8917
8927
  this.logger('warn', 'Error while notifying track mute state', err);
8918
8928
  });
@@ -9170,14 +9180,6 @@ class CameraManagerState extends InputMediaDeviceManagerState {
9170
9180
  }
9171
9181
  }
9172
9182
 
9173
- /**
9174
- * Checks if the current platform is a mobile device.
9175
- *
9176
- * See:
9177
- * https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent
9178
- */
9179
- const isMobile = () => /Mobi/i.test(navigator.userAgent);
9180
-
9181
9183
  class CameraManager extends InputMediaDeviceManager {
9182
9184
  /**
9183
9185
  * Constructs a new CameraManager.
@@ -12836,7 +12838,7 @@ class StreamClient {
12836
12838
  return await this.wsConnection.connect(this.defaultWSTimeout);
12837
12839
  };
12838
12840
  this.getUserAgent = () => {
12839
- const version = "1.15.0";
12841
+ const version = "1.15.1";
12840
12842
  return (this.userAgent ||
12841
12843
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12842
12844
  };