@bigbinary/neeto-media-recorder 2.7.10 → 2.7.12

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
@@ -837,8 +837,7 @@ var checkConstraints = function checkConstraints() {
837
837
  return _typeof$1(mediaType) === "object";
838
838
  }).map(getUnSupportedConstraints).flat();
839
839
  if (isNotEmpty(unSupportedConstraints)) {
840
- // eslint-disable-next-line no-console
841
- console.error("The constraints ".concat(unSupportedConstraints.join(","), " doesn't support on this browser."));
840
+ logger.error("The constraints ".concat(unSupportedConstraints.join(","), " doesn't support on this browser."));
842
841
  }
843
842
  };
844
843
  var isStreamEnded = function isStreamEnded(mediaStream) {
@@ -1667,6 +1666,11 @@ var ScreenRecorder = /*#__PURE__*/function () {
1667
1666
  writable: true,
1668
1667
  value: false
1669
1668
  });
1669
+ _defineProperty(this, "setDisplaySurface", function (displaySurface) {
1670
+ _classPrivateFieldSet(_this, _video, {
1671
+ displaySurface: displaySurface
1672
+ });
1673
+ });
1670
1674
  _defineProperty(this, "getAudioStream", function () {
1671
1675
  return _classPrivateFieldGet(_this, _audioStream);
1672
1676
  });
@@ -1951,8 +1955,7 @@ var ScreenRecorder = /*#__PURE__*/function () {
1951
1955
  case 27:
1952
1956
  _context2.prev = 27;
1953
1957
  _context2.t4 = _context2["catch"](14);
1954
- // eslint-disable-next-line no-console
1955
- console.error("Failed to load audio worklet:", _context2.t4);
1958
+ logger.error("Failed to load audio worklet:", _context2.t4);
1956
1959
  case 30:
1957
1960
  if (!_classPrivateFieldGet(_this, _videoStream)) {
1958
1961
  _context2.next = 34;