@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-client",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -3,6 +3,7 @@ import { Call } from '../Call';
3
3
  import { CallingState } from '../store';
4
4
  import { createSubscription } from '../store/rxUtils';
5
5
  import { InputMediaDeviceManagerState } from './InputMediaDeviceManagerState';
6
+ import { isMobile } from '../helpers/compatibility';
6
7
  import { isReactNative } from '../helpers/platforms';
7
8
  import { Logger } from '../coordinator/connection/types';
8
9
  import { getLogger } from '../logger';
@@ -417,6 +418,7 @@ export abstract class InputMediaDeviceManager<
417
418
  }
418
419
  };
419
420
  const createTrackMuteHandler = (muted: boolean) => () => {
421
+ if (!isMobile() || this.trackType !== TrackType.VIDEO) return;
420
422
  this.call.notifyTrackMuteState(muted, this.trackType).catch((err) => {
421
423
  this.logger('warn', 'Error while notifying track mute state', err);
422
424
  });