@stream-io/video-react-sdk 1.13.0 → 1.13.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
|
@@ -26,7 +26,9 @@ type DeviceState<K extends DeviceKey> = {
|
|
|
26
26
|
|
|
27
27
|
interface DeviceManagerLike {
|
|
28
28
|
state: { selectedDevice: string | undefined };
|
|
29
|
-
select(deviceId: string)
|
|
29
|
+
select: (deviceId: string) => Promise<void> | void;
|
|
30
|
+
enable?: () => Promise<void>;
|
|
31
|
+
disable?: () => Promise<void>;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
const defaultDevice = 'default';
|
|
@@ -191,6 +193,7 @@ const selectDevice = async (
|
|
|
191
193
|
|
|
192
194
|
if (device) {
|
|
193
195
|
await manager.select(device.deviceId);
|
|
196
|
+
await manager[p.muted ? 'disable' : 'enable']?.();
|
|
194
197
|
return;
|
|
195
198
|
}
|
|
196
199
|
}
|