@webex/web-client-media-engine 3.24.1 → 3.24.2
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/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -613,8 +613,11 @@ function createDisplayStreamWithAudio(displayStreamConstructor, systemAudioStrea
|
|
|
613
613
|
function getDevices(deviceKind) {
|
|
614
614
|
return __awaiter$2(this, void 0, void 0, function* () {
|
|
615
615
|
let devices;
|
|
616
|
+
const deviceKinds = deviceKind
|
|
617
|
+
? [deviceKind]
|
|
618
|
+
: [DeviceKind$1.AudioInput, DeviceKind$1.VideoInput];
|
|
616
619
|
try {
|
|
617
|
-
devices = yield ensureDevicePermissions(
|
|
620
|
+
devices = yield ensureDevicePermissions(deviceKinds, enumerateDevices);
|
|
618
621
|
}
|
|
619
622
|
catch (error) {
|
|
620
623
|
throw new WebrtcCoreError(exports.WebrtcCoreErrorType.DEVICE_PERMISSION_DENIED, 'Failed to ensure device permissions');
|