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