@bigbinary/neeto-media-recorder 2.0.0 → 2.0.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/core.js CHANGED
@@ -1138,6 +1138,46 @@ function _get_isNotInitialized() {
1138
1138
  }
1139
1139
  var multipartS3Uploader = new MultipartS3Uploader();
1140
1140
 
1141
+ function _arrayWithHoles(arr) {
1142
+ if (Array.isArray(arr)) return arr;
1143
+ }
1144
+
1145
+ function _iterableToArrayLimit(arr, i) {
1146
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1147
+ if (null != _i) {
1148
+ var _s,
1149
+ _e,
1150
+ _x,
1151
+ _r,
1152
+ _arr = [],
1153
+ _n = !0,
1154
+ _d = !1;
1155
+ try {
1156
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
1157
+ if (Object(_i) !== _i) return;
1158
+ _n = !1;
1159
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1160
+ } catch (err) {
1161
+ _d = !0, _e = err;
1162
+ } finally {
1163
+ try {
1164
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
1165
+ } finally {
1166
+ if (_d) throw _e;
1167
+ }
1168
+ }
1169
+ return _arr;
1170
+ }
1171
+ }
1172
+
1173
+ function _nonIterableRest() {
1174
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1175
+ }
1176
+
1177
+ function _slicedToArray(arr, i) {
1178
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1179
+ }
1180
+
1141
1181
  // https://www.w3.org/TR/screen-capture/#displaycapturesurfacetype
1142
1182
  var DISPLAY_SURFACE = {
1143
1183
  monitor: "monitor",
@@ -1746,6 +1786,20 @@ var ScreenRecorder = /*#__PURE__*/function () {
1746
1786
  get: function get() {
1747
1787
  return _classPrivateFieldGet(this, _timeLimit);
1748
1788
  }
1789
+ }, {
1790
+ key: "displaySurface",
1791
+ get: function get() {
1792
+ var _classPrivateFieldGet25;
1793
+ var _classPrivateFieldGet23 = (_classPrivateFieldGet25 = _classPrivateFieldGet(this, _mediaStream)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.getVideoTracks(),
1794
+ _classPrivateFieldGet24 = _slicedToArray(_classPrivateFieldGet23, 1),
1795
+ videoTrack = _classPrivateFieldGet24[0];
1796
+ return videoTrack.getSettings().displaySurface;
1797
+ }
1798
+ }, {
1799
+ key: "audioConfiguration",
1800
+ get: function get() {
1801
+ return _classPrivateFieldGet(this, _audio);
1802
+ }
1749
1803
  }]);
1750
1804
  return ScreenRecorder;
1751
1805
  }();