@snapcall/stream-ui 1.42.2 → 1.42.3
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/dist/stream-ui.esm.js +1 -5
- package/dist/stream-ui.js +1 -5
- package/package.json +1 -1
package/dist/stream-ui.esm.js
CHANGED
|
@@ -6293,17 +6293,13 @@ const $cbe12d51333f02bd$export$9ee2a145b590ce4b = ()=>{
|
|
|
6293
6293
|
|
|
6294
6294
|
|
|
6295
6295
|
|
|
6296
|
-
|
|
6297
6296
|
const $29e2063f6bd67bba$export$6aa26f5ebe6471fc = ({ kind: kind, includeDefault: includeDefault = false } = {})=>{
|
|
6298
6297
|
const getMediaDevices = async ()=>{
|
|
6299
|
-
await (0, $c9e496369b59be7a$export$2f377c2162fd02b2).processMediaPermissionsAndResolveRequests({
|
|
6300
|
-
audio: kind === 'audioinput',
|
|
6301
|
-
video: kind === 'videoinput'
|
|
6302
|
-
});
|
|
6303
6298
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
6304
6299
|
const filteredDevices = devices.filter((device)=>{
|
|
6305
6300
|
if (device.deviceId === 'default' && !includeDefault) return false;
|
|
6306
6301
|
if (kind && kind !== device.kind) return false;
|
|
6302
|
+
if (!device.deviceId) return false;
|
|
6307
6303
|
return true;
|
|
6308
6304
|
});
|
|
6309
6305
|
return filteredDevices;
|
package/dist/stream-ui.js
CHANGED
|
@@ -6299,17 +6299,13 @@ const $8f65e34d23588915$export$9ee2a145b590ce4b = ()=>{
|
|
|
6299
6299
|
|
|
6300
6300
|
|
|
6301
6301
|
|
|
6302
|
-
|
|
6303
6302
|
const $cf45aa5122d1e9ea$export$6aa26f5ebe6471fc = ({ kind: kind, includeDefault: includeDefault = false } = {})=>{
|
|
6304
6303
|
const getMediaDevices = async ()=>{
|
|
6305
|
-
await (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).processMediaPermissionsAndResolveRequests({
|
|
6306
|
-
audio: kind === 'audioinput',
|
|
6307
|
-
video: kind === 'videoinput'
|
|
6308
|
-
});
|
|
6309
6304
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
6310
6305
|
const filteredDevices = devices.filter((device)=>{
|
|
6311
6306
|
if (device.deviceId === 'default' && !includeDefault) return false;
|
|
6312
6307
|
if (kind && kind !== device.kind) return false;
|
|
6308
|
+
if (!device.deviceId) return false;
|
|
6313
6309
|
return true;
|
|
6314
6310
|
});
|
|
6315
6311
|
return filteredDevices;
|