@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 +7 -0
- package/dist/index.browser.es.js +12 -10
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +12 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -10
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/devices/InputMediaDeviceManager.ts +2 -0
package/package.json
CHANGED
|
@@ -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
|
});
|