@stormstreaming/stormstreamer 0.9.2-beta.0 → 0.9.2-beta.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/amd/index.js CHANGED
@@ -4,8 +4,8 @@
4
4
  * contact@stormstreaming.com
5
5
  * https://stormstreaming.com
6
6
  *
7
- * Version: 0.9.2-beta.0
8
- * Version: 3/6/2025, 12:46:46 PM
7
+ * Version: 0.9.2-beta.2
8
+ * Version: 3/6/2025, 2:53:17 PM
9
9
  *
10
10
  * LEGAL NOTICE:
11
11
  * This software is subject to the terms and conditions defined in
@@ -2424,19 +2424,19 @@
2424
2424
  cleanLabel(label) {
2425
2425
  return label;
2426
2426
  }
2427
- getLabel() {
2427
+ get label() {
2428
2428
  return this._label;
2429
2429
  }
2430
- getID() {
2430
+ get id() {
2431
2431
  return this._id;
2432
2432
  }
2433
- getGroupID() {
2433
+ get groupID() {
2434
2434
  return this._groupID;
2435
2435
  }
2436
- getIfSelected() {
2436
+ get isSelected() {
2437
2437
  return this._isSelected;
2438
2438
  }
2439
- setSelected(isSelected) {
2439
+ set isSelected(isSelected) {
2440
2440
  this._isSelected = isSelected;
2441
2441
  }
2442
2442
  }
@@ -2449,8 +2449,8 @@
2449
2449
  let alreadyExists = false;
2450
2450
  if (this._internalList.length > 0) {
2451
2451
  for (let i = 0; i < this._internalList.length; i++) {
2452
- if (this._internalList[i].getGroupID() !== "") {
2453
- if (this._internalList[i].getGroupID() == item.getGroupID()) {
2452
+ if (this._internalList[i].groupID !== "") {
2453
+ if (this._internalList[i].groupID == item.groupID) {
2454
2454
  alreadyExists = true;
2455
2455
  this._internalList[i] = item;
2456
2456
  }
@@ -2587,16 +2587,16 @@
2587
2587
  }
2588
2588
  }
2589
2589
 
2590
- exports.StreamerState = void 0;
2591
- (function (StreamerState) {
2592
- StreamerState["NOT_INITIALIZED"] = "NOT_INITIALIZED";
2593
- StreamerState["INITIALIZED"] = "INITIALIZED";
2594
- StreamerState["READY"] = "READY";
2595
- StreamerState["UPDATING"] = "UPDATING";
2596
- StreamerState["INVALID"] = "INVALID";
2597
- StreamerState["UNKNOWN"] = "UNKNOWN";
2598
- StreamerState["STOPPED"] = "STOPPED";
2599
- })(exports.StreamerState || (exports.StreamerState = {}));
2590
+ exports.InputDevicesState = void 0;
2591
+ (function (InputDevicesState) {
2592
+ InputDevicesState["NOT_INITIALIZED"] = "NOT_INITIALIZED";
2593
+ InputDevicesState["INITIALIZED"] = "INITIALIZED";
2594
+ InputDevicesState["READY"] = "READY";
2595
+ InputDevicesState["UPDATING"] = "UPDATING";
2596
+ InputDevicesState["INVALID"] = "INVALID";
2597
+ InputDevicesState["UNKNOWN"] = "UNKNOWN";
2598
+ InputDevicesState["STOPPED"] = "STOPPED";
2599
+ })(exports.InputDevicesState || (exports.InputDevicesState = {}));
2600
2600
 
2601
2601
  exports.DeviceState = void 0;
2602
2602
  (function (DeviceState) {
@@ -2977,7 +2977,7 @@
2977
2977
  this._restartTimerMaxCount = 5;
2978
2978
  this._publishState = exports.PublishState.NOT_INITIALIZED;
2979
2979
  this._publishTime = 0;
2980
- this._inputDeviceState = exports.StreamerState.NOT_INITIALIZED;
2980
+ this._inputDeviceState = exports.InputDevicesState.NOT_INITIALIZED;
2981
2981
  this._cameraState = exports.DeviceState.NOT_INITIALIZED;
2982
2982
  this._microphoneState = exports.DeviceState.NOT_INITIALIZED;
2983
2983
  this._publishTimer = 0;
@@ -2987,7 +2987,7 @@
2987
2987
  this.onDeviceStateChange = event => {
2988
2988
  var _a;
2989
2989
  const usedStreamKey = (_a = this._main.getConfigManager()) === null || _a === void 0 ? void 0 : _a.getStreamData().streamKey;
2990
- if (event.state == exports.StreamerState.READY && usedStreamKey != null) {
2990
+ if (event.state == exports.InputDevicesState.READY && usedStreamKey != null) {
2991
2991
  this.publish(usedStreamKey);
2992
2992
  }
2993
2993
  };
@@ -3014,7 +3014,7 @@
3014
3014
  }
3015
3015
  } catch (error) {
3016
3016
  this._logger.error(this, "Error restarting stream after orientation change: " + JSON.stringify(error));
3017
- this.setInputDeviceState(exports.StreamerState.INVALID);
3017
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3018
3018
  }
3019
3019
  }
3020
3020
  });
@@ -3173,7 +3173,7 @@
3173
3173
  }
3174
3174
  } catch (error) {
3175
3175
  this._logger.error(this, "Initialization failed: " + JSON.stringify(error));
3176
- this.setInputDeviceState(exports.StreamerState.INVALID);
3176
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3177
3177
  }
3178
3178
  });
3179
3179
  }
@@ -3232,7 +3232,7 @@
3232
3232
  handlePermissionChange(device, state) {
3233
3233
  return __awaiter(this, void 0, void 0, function* () {
3234
3234
  if (state === 'denied') {
3235
- this.setInputDeviceState(exports.StreamerState.INVALID);
3235
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3236
3236
  if (this._publishState == exports.PublishState.CONNECTED) {
3237
3237
  this.closeStream();
3238
3238
  }
@@ -3486,26 +3486,26 @@
3486
3486
  ref: this._main
3487
3487
  });
3488
3488
  this.setCameraState(exports.DeviceState.ACCESS_DENIED);
3489
- this.setInputDeviceState(exports.StreamerState.INVALID);
3489
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3490
3490
  } else if (!deviceAccess.camera.available) {
3491
3491
  this._main.dispatchEvent("noCameraFound", {
3492
3492
  ref: this._main
3493
3493
  });
3494
3494
  this.setCameraState(exports.DeviceState.NOT_FOUND);
3495
- this.setInputDeviceState(exports.StreamerState.INVALID);
3495
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3496
3496
  }
3497
3497
  if (!deviceAccess.microphone.allowed) {
3498
3498
  this._main.dispatchEvent("microphoneAccessDenied", {
3499
3499
  ref: this._main
3500
3500
  });
3501
3501
  this.setMicrophoneState(exports.DeviceState.ACCESS_DENIED);
3502
- this.setInputDeviceState(exports.StreamerState.INVALID);
3502
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3503
3503
  } else if (!deviceAccess.microphone.available) {
3504
3504
  this._main.dispatchEvent("noMicrophoneFound", {
3505
3505
  ref: this._main
3506
3506
  });
3507
3507
  this.setMicrophoneState(exports.DeviceState.NOT_FOUND);
3508
- this.setInputDeviceState(exports.StreamerState.INVALID);
3508
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3509
3509
  }
3510
3510
  }
3511
3511
  const devices = yield navigator.mediaDevices.enumerateDevices();
@@ -3528,7 +3528,7 @@
3528
3528
  this._selectedMicrophone = this.pickMicrophone();
3529
3529
  }
3530
3530
  } catch (error) {
3531
- this.setInputDeviceState(exports.StreamerState.INVALID);
3531
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3532
3532
  this._logger.error(this, "Errror on grab devices: " + JSON.stringify(error));
3533
3533
  }
3534
3534
  this._main.dispatchEvent("deviceListUpdate", {
@@ -3555,18 +3555,18 @@
3555
3555
  selectCamera(cameraID) {
3556
3556
  var _a, _b;
3557
3557
  for (let i = 0; i < this._cameraList.getSize(); i++) {
3558
- this._cameraList.get(i).setSelected(false);
3558
+ this._cameraList.get(i).isSelected = false;
3559
3559
  }
3560
3560
  this._selectedCamera = null;
3561
- this.setInputDeviceState(exports.StreamerState.UPDATING);
3561
+ this.setInputDeviceState(exports.InputDevicesState.UPDATING);
3562
3562
  this.setCameraState(exports.DeviceState.NOT_INITIALIZED);
3563
3563
  const streamKey = (_a = this._main.getConfigManager()) === null || _a === void 0 ? void 0 : _a.getStreamData().streamKey;
3564
3564
  const wasPublished = this._publishState === exports.PublishState.CONNECTED;
3565
3565
  for (let i = 0; i < this._cameraList.getSize(); i++) {
3566
- if (this._cameraList.get(i).getID() == cameraID) {
3566
+ if (this._cameraList.get(i).id == cameraID) {
3567
3567
  this._selectedCamera = this._cameraList.get(i);
3568
- this._selectedCamera.setSelected(true);
3569
- (_b = this._main.getStorageManager()) === null || _b === void 0 ? void 0 : _b.saveField("cameraID", this._selectedCamera.getID());
3568
+ this._selectedCamera.isSelected = true;
3569
+ (_b = this._main.getStorageManager()) === null || _b === void 0 ? void 0 : _b.saveField("cameraID", this._selectedCamera.id);
3570
3570
  break;
3571
3571
  }
3572
3572
  }
@@ -3577,35 +3577,35 @@
3577
3577
  });
3578
3578
  this.stopCameraStream();
3579
3579
  if (this._selectedCamera != null) {
3580
- this._constraints.video.deviceId = this._selectedCamera.getID();
3580
+ this._constraints.video.deviceId = this._selectedCamera.id;
3581
3581
  this.startCamera().then(() => {
3582
3582
  this.setCameraState(exports.DeviceState.ENABLED);
3583
- if (this._cameraState == exports.DeviceState.ENABLED && this._microphoneState == exports.DeviceState.ENABLED) this.setInputDeviceState(exports.StreamerState.READY);else this.setInputDeviceState(exports.StreamerState.INVALID);
3583
+ if (this._cameraState == exports.DeviceState.ENABLED && this._microphoneState == exports.DeviceState.ENABLED) this.setInputDeviceState(exports.InputDevicesState.READY);else this.setInputDeviceState(exports.InputDevicesState.INVALID);
3584
3584
  if (wasPublished && streamKey) {
3585
3585
  this.publish(streamKey);
3586
3586
  }
3587
3587
  });
3588
3588
  } else {
3589
- this.setInputDeviceState(exports.StreamerState.INVALID);
3589
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3590
3590
  }
3591
3591
  }
3592
3592
  selectMicrophone(micID) {
3593
3593
  var _a, _b;
3594
3594
  return __awaiter(this, void 0, void 0, function* () {
3595
3595
  for (let i = 0; i < this._microphoneList.getSize(); i++) {
3596
- this._microphoneList.get(i).setSelected(false);
3596
+ this._microphoneList.get(i).isSelected = false;
3597
3597
  }
3598
3598
  this._selectedMicrophone = null;
3599
- this.setInputDeviceState(exports.StreamerState.UPDATING);
3599
+ this.setInputDeviceState(exports.InputDevicesState.UPDATING);
3600
3600
  this.setMicrophoneState(exports.DeviceState.NOT_INITIALIZED);
3601
3601
  this._logger.info(this, "Selecting microphone: " + micID);
3602
3602
  const streamKey = (_a = this._main.getConfigManager()) === null || _a === void 0 ? void 0 : _a.getStreamData().streamKey;
3603
3603
  const wasPublished = this._publishState === exports.PublishState.CONNECTED;
3604
3604
  for (let i = 0; i < this._microphoneList.getSize(); i++) {
3605
- if (this._microphoneList.get(i).getID() == micID) {
3605
+ if (this._microphoneList.get(i).id == micID) {
3606
3606
  this._selectedMicrophone = this._microphoneList.get(i);
3607
- this._selectedMicrophone.setSelected(true);
3608
- (_b = this._main.getStorageManager()) === null || _b === void 0 ? void 0 : _b.saveField("microphoneID", this._selectedMicrophone.getID());
3607
+ this._selectedMicrophone.isSelected = true;
3608
+ (_b = this._main.getStorageManager()) === null || _b === void 0 ? void 0 : _b.saveField("microphoneID", this._selectedMicrophone.id);
3609
3609
  break;
3610
3610
  }
3611
3611
  }
@@ -3626,9 +3626,9 @@
3626
3626
  yield this.startCamera();
3627
3627
  this.setMicrophoneState(exports.DeviceState.ENABLED);
3628
3628
  if (this._cameraState == exports.DeviceState.ENABLED && this._microphoneState == exports.DeviceState.ENABLED) {
3629
- this.setInputDeviceState(exports.StreamerState.READY);
3629
+ this.setInputDeviceState(exports.InputDevicesState.READY);
3630
3630
  } else {
3631
- this.setInputDeviceState(exports.StreamerState.INVALID);
3631
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3632
3632
  }
3633
3633
  if (wasPublished && streamKey) {
3634
3634
  this.publish(streamKey);
@@ -3638,7 +3638,7 @@
3638
3638
  this._main.dispatchEvent("inputDeviceError", {
3639
3639
  ref: this._main
3640
3640
  });
3641
- this.setInputDeviceState(exports.StreamerState.INVALID);
3641
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3642
3642
  }
3643
3643
  });
3644
3644
  }
@@ -3654,12 +3654,12 @@
3654
3654
  const constraints = {
3655
3655
  video: this._selectedCamera ? Object.assign(Object.assign({}, this._constraints.video), {
3656
3656
  deviceId: {
3657
- exact: this._selectedCamera.getID()
3657
+ exact: this._selectedCamera.id
3658
3658
  }
3659
3659
  }) : false,
3660
3660
  audio: this._selectedMicrophone ? {
3661
3661
  deviceId: {
3662
- exact: this._selectedMicrophone.getID()
3662
+ exact: this._selectedMicrophone.id
3663
3663
  }
3664
3664
  } : false
3665
3665
  };
@@ -3683,7 +3683,7 @@
3683
3683
  });
3684
3684
  }
3685
3685
  }
3686
- if (this._cameraState == exports.DeviceState.ENABLED && this._microphoneState == exports.DeviceState.ENABLED) this.setInputDeviceState(exports.StreamerState.READY);
3686
+ if (this._cameraState == exports.DeviceState.ENABLED && this._microphoneState == exports.DeviceState.ENABLED) this.setInputDeviceState(exports.InputDevicesState.READY);
3687
3687
  } catch (error) {
3688
3688
  console.error("Error in startCamera:", error);
3689
3689
  yield this.grabDevices();
@@ -3711,25 +3711,25 @@
3711
3711
  pickCamera() {
3712
3712
  var _a, _b, _c, _d, _e, _f;
3713
3713
  for (let i = 0; i < this._cameraList.getSize(); i++) {
3714
- this._cameraList.get(i).setSelected(false);
3714
+ this._cameraList.get(i).isSelected = false;
3715
3715
  }
3716
3716
  let savedCameraID = (_b = (_a = this._main.getStorageManager()) === null || _a === void 0 ? void 0 : _a.getField("cameraID")) !== null && _b !== void 0 ? _b : null;
3717
3717
  if (this._cameraList.getSize() > 0) {
3718
3718
  if (savedCameraID) {
3719
3719
  let found = false;
3720
3720
  for (let i = 0; i < this._cameraList.getSize(); i++) {
3721
- if (this._cameraList.get(i).getID() === savedCameraID) {
3721
+ if (this._cameraList.get(i).id === savedCameraID) {
3722
3722
  this._selectedCamera = this._cameraList.get(i);
3723
- this._selectedCamera.setSelected(true);
3723
+ this._selectedCamera.isSelected = true;
3724
3724
  this.setCameraState(exports.DeviceState.ENABLED);
3725
3725
  found = true;
3726
- this._constraints.video.deviceId = this._selectedCamera.getID();
3726
+ this._constraints.video.deviceId = this._selectedCamera.id;
3727
3727
  break;
3728
3728
  }
3729
3729
  }
3730
3730
  if (!found) {
3731
3731
  this.setCameraState(exports.DeviceState.NOT_FOUND);
3732
- this.setInputDeviceState(exports.StreamerState.INVALID);
3732
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3733
3733
  this._main.dispatchEvent("savedCameraNotFound", {
3734
3734
  ref: this._main,
3735
3735
  savedDeviceID: savedCameraID
@@ -3752,13 +3752,13 @@
3752
3752
  }
3753
3753
  if ((_e = this._main.getConfigManager()) === null || _e === void 0 ? void 0 : _e.getSettingsData().getIfForceSelection()) {
3754
3754
  this._selectedCamera = this._cameraList.get(0);
3755
- this._selectedCamera.setSelected(true);
3756
- (_f = this._main.getStorageManager()) === null || _f === void 0 ? void 0 : _f.saveField("cameraID", this._selectedCamera.getID());
3757
- this._constraints.video.deviceId = this._selectedCamera.getID();
3755
+ this._selectedCamera.isSelected = true;
3756
+ (_f = this._main.getStorageManager()) === null || _f === void 0 ? void 0 : _f.saveField("cameraID", this._selectedCamera.id);
3757
+ this._constraints.video.deviceId = this._selectedCamera.id;
3758
3758
  this.setCameraState(exports.DeviceState.ENABLED);
3759
3759
  } else {
3760
3760
  this.setCameraState(exports.DeviceState.NOT_FOUND);
3761
- this.setInputDeviceState(exports.StreamerState.INVALID);
3761
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3762
3762
  return null;
3763
3763
  }
3764
3764
  }
@@ -3773,14 +3773,14 @@
3773
3773
  pickMicrophone() {
3774
3774
  var _a, _b, _c, _d, _e, _f;
3775
3775
  for (let i = 0; i < this._microphoneList.getSize(); i++) {
3776
- this._microphoneList.get(i).setSelected(false);
3776
+ this._microphoneList.get(i).isSelected = false;
3777
3777
  }
3778
3778
  let savedMicID = (_b = (_a = this._main.getStorageManager()) === null || _a === void 0 ? void 0 : _a.getField("microphoneID")) !== null && _b !== void 0 ? _b : null;
3779
3779
  if (this._microphoneList.getSize() > 0) {
3780
3780
  if (savedMicID) {
3781
3781
  let found = false;
3782
3782
  for (let i = 0; i < this._microphoneList.getSize(); i++) {
3783
- if (this._microphoneList.get(i).getID() === savedMicID) {
3783
+ if (this._microphoneList.get(i).id === savedMicID) {
3784
3784
  this._selectedMicrophone = this._microphoneList.get(i);
3785
3785
  found = true;
3786
3786
  this.setMicrophoneState(exports.DeviceState.ENABLED);
@@ -3793,7 +3793,7 @@
3793
3793
  savedDeviceID: savedMicID
3794
3794
  });
3795
3795
  this.setMicrophoneState(exports.DeviceState.NOT_FOUND);
3796
- this.setInputDeviceState(exports.StreamerState.INVALID);
3796
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3797
3797
  if ((_c = this._main.getConfigManager()) === null || _c === void 0 ? void 0 : _c.getSettingsData().getIfCancelPublishOnError()) {
3798
3798
  this._logger.info(this, "Canceling Publish!");
3799
3799
  this._main.getConfigManager().getStreamData().streamKey = null;
@@ -3813,16 +3813,16 @@
3813
3813
  if ((_e = this._main.getConfigManager()) === null || _e === void 0 ? void 0 : _e.getSettingsData().getIfForceSelection()) {
3814
3814
  this._selectedMicrophone = this._microphoneList.get(0);
3815
3815
  this.setMicrophoneState(exports.DeviceState.ENABLED);
3816
- (_f = this._main.getStorageManager()) === null || _f === void 0 ? void 0 : _f.saveField("microphoneID", this._selectedMicrophone.getID());
3816
+ (_f = this._main.getStorageManager()) === null || _f === void 0 ? void 0 : _f.saveField("microphoneID", this._selectedMicrophone.id);
3817
3817
  } else {
3818
3818
  this.setMicrophoneState(exports.DeviceState.NOT_FOUND);
3819
- this.setInputDeviceState(exports.StreamerState.INVALID);
3819
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
3820
3820
  return null;
3821
3821
  }
3822
3822
  }
3823
- this._selectedMicrophone.setSelected(true);
3823
+ this._selectedMicrophone.isSelected = true;
3824
3824
  this._constraints.audio = {
3825
- deviceId: this._selectedMicrophone.getID()
3825
+ deviceId: this._selectedMicrophone.id
3826
3826
  };
3827
3827
  }
3828
3828
  return this._selectedMicrophone;
@@ -4052,7 +4052,7 @@
4052
4052
  this.closeWebRTCConnection();
4053
4053
  this.stopCameraStream();
4054
4054
  this.setPublishState(exports.PublishState.STOPPED);
4055
- this.setInputDeviceState(exports.StreamerState.STOPPED);
4055
+ this.setInputDeviceState(exports.InputDevicesState.STOPPED);
4056
4056
  this.setCameraState(exports.DeviceState.STOPPED);
4057
4057
  this.setMicrophoneState(exports.DeviceState.STOPPED);
4058
4058
  if (this._restartTimer) {
@@ -4067,7 +4067,7 @@
4067
4067
  return __awaiter(this, void 0, void 0, function* () {
4068
4068
  try {
4069
4069
  this._publishState = exports.PublishState.NOT_INITIALIZED;
4070
- this._inputDeviceState = exports.StreamerState.NOT_INITIALIZED;
4070
+ this._inputDeviceState = exports.InputDevicesState.NOT_INITIALIZED;
4071
4071
  this._cameraState = exports.DeviceState.NOT_INITIALIZED;
4072
4072
  this._microphoneState = exports.DeviceState.NOT_INITIALIZED;
4073
4073
  yield this.initializeDevices();
@@ -4080,7 +4080,7 @@
4080
4080
  }
4081
4081
  } catch (error) {
4082
4082
  this._logger.error(this, "Start failed: " + JSON.stringify(error));
4083
- this.setInputDeviceState(exports.StreamerState.INVALID);
4083
+ this.setInputDeviceState(exports.InputDevicesState.INVALID);
4084
4084
  throw error;
4085
4085
  }
4086
4086
  });
@@ -4579,8 +4579,8 @@
4579
4579
  constructor(streamConfig, autoInitialize = false) {
4580
4580
  super();
4581
4581
  this.DEV_MODE = true;
4582
- this.STREAMER_VERSION = "0.9.2-beta.0";
4583
- this.COMPILE_DATE = "3/6/2025, 12:46:45 PM";
4582
+ this.STREAMER_VERSION = "0.9.2-beta.2";
4583
+ this.COMPILE_DATE = "3/6/2025, 2:53:15 PM";
4584
4584
  this.STREAMER_BRANCH = "Experimental";
4585
4585
  this.STREAMER_PROTOCOL_VERSION = 1;
4586
4586
  this._initialized = false;
@@ -4724,9 +4724,9 @@
4724
4724
  var _a, _b;
4725
4725
  return (_b = (_a = this._streamerController) === null || _a === void 0 ? void 0 : _a.publish(streamKey)) !== null && _b !== void 0 ? _b : false;
4726
4726
  }
4727
- getInputDeviceState() {
4727
+ getInputDevicesState() {
4728
4728
  var _a, _b;
4729
- return (_b = (_a = this._streamerController) === null || _a === void 0 ? void 0 : _a.getInputDeviceState()) !== null && _b !== void 0 ? _b : exports.StreamerState.NOT_INITIALIZED;
4729
+ return (_b = (_a = this._streamerController) === null || _a === void 0 ? void 0 : _a.getInputDeviceState()) !== null && _b !== void 0 ? _b : exports.InputDevicesState.NOT_INITIALIZED;
4730
4730
  }
4731
4731
  getCamerState() {
4732
4732
  var _a, _b;