@bigbinary/neeto-media-recorder 2.7.25 → 2.7.27

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/core.js CHANGED
@@ -2045,23 +2045,29 @@ var ScreenRecorder = /*#__PURE__*/function () {
2045
2045
  _classPrivateFieldGet(_this, _store).setState({
2046
2046
  status: SCREEN_RECORDER_STATUS.media_acquired
2047
2047
  });
2048
- _context2.next = 54;
2048
+ _context2.next = 55;
2049
2049
  break;
2050
2050
  case 51:
2051
2051
  _context2.prev = 51;
2052
2052
  _context2.t5 = _context2["catch"](2);
2053
- if (_classPrivateFieldGet(_this, _audio) && !_classPrivateFieldGet(_this, _audioStream)) {
2053
+ _classPrivateFieldGet(_this, _logger).info("screenRecorder -> acquireMediaStream:error", _context2.t5 === null || _context2.t5 === void 0 ? void 0 : _context2.t5.name, _context2.t5 === null || _context2.t5 === void 0 ? void 0 : _context2.t5.message);
2054
+ if (SCREEN_RECORDER_ERROR[_context2.t5 === null || _context2.t5 === void 0 ? void 0 : _context2.t5.name]) {
2055
+ _classPrivateFieldGet(_this, _store).setState({
2056
+ error: SCREEN_RECORDER_ERROR[_context2.t5.name],
2057
+ status: SCREEN_RECORDER_STATUS.idle
2058
+ });
2059
+ } else if (_classPrivateFieldGet(_this, _audio) && !_classPrivateFieldGet(_this, _audioStream)) {
2054
2060
  _classPrivateFieldGet(_this, _store).setState({
2055
2061
  error: SCREEN_RECORDER_ERROR.MicPermissionDenied,
2056
2062
  status: SCREEN_RECORDER_STATUS.idle
2057
2063
  });
2058
2064
  } else if (!_classPrivateFieldGet(_this, _mediaStream) || isStreamEnded(_classPrivateFieldGet(_this, _mediaStream))) {
2059
2065
  _classPrivateFieldGet(_this, _store).setState({
2060
- error: SCREEN_RECORDER_ERROR[_context2.t5.name],
2066
+ error: SCREEN_RECORDER_ERROR[_context2.t5 === null || _context2.t5 === void 0 ? void 0 : _context2.t5.name],
2061
2067
  status: SCREEN_RECORDER_STATUS.idle
2062
2068
  });
2063
2069
  }
2064
- case 54:
2070
+ case 55:
2065
2071
  case "end":
2066
2072
  return _context2.stop();
2067
2073
  }