videomail-client 10.2.43 → 10.2.45
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/cjs/index.cjs +224 -224
- package/dist/esm/client.d.ts +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +215 -215
- package/dist/esm/wrappers/container.d.ts +1 -1
- package/dist/esm/wrappers/visuals/recorder.d.ts +1 -1
- package/dist/esm/wrappers/visuals.d.ts +1 -1
- package/dist/umd/index.js +168 -168
- package/package.json +19 -17
package/dist/cjs/index.cjs
CHANGED
|
@@ -1179,7 +1179,7 @@ var __webpack_modules__ = {
|
|
|
1179
1179
|
function writeFloat(buf, value, offset, littleEndian, noAssert) {
|
|
1180
1180
|
value *= 1;
|
|
1181
1181
|
offset >>>= 0;
|
|
1182
|
-
if (!noAssert) checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -
|
|
1182
|
+
if (!noAssert) checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38);
|
|
1183
1183
|
ieee754.write(buf, value, offset, littleEndian, 23, 4);
|
|
1184
1184
|
return offset + 4;
|
|
1185
1185
|
}
|
|
@@ -1192,7 +1192,7 @@ var __webpack_modules__ = {
|
|
|
1192
1192
|
function writeDouble(buf, value, offset, littleEndian, noAssert) {
|
|
1193
1193
|
value *= 1;
|
|
1194
1194
|
offset >>>= 0;
|
|
1195
|
-
if (!noAssert) checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -
|
|
1195
|
+
if (!noAssert) checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157e+308);
|
|
1196
1196
|
ieee754.write(buf, value, offset, littleEndian, 52, 8);
|
|
1197
1197
|
return offset + 8;
|
|
1198
1198
|
}
|
|
@@ -2054,7 +2054,7 @@ var __webpack_modules__ = {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
var util = Object.create(__webpack_require__("./node_modules/core-util-is/lib/util.js"));
|
|
2056
2056
|
util.inherits = __webpack_require__("./node_modules/inherits/inherits_browser.js");
|
|
2057
|
-
var debugUtil = __webpack_require__("?
|
|
2057
|
+
var debugUtil = __webpack_require__("?2927");
|
|
2058
2058
|
var debug = void 0;
|
|
2059
2059
|
debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog('stream') : function() {};
|
|
2060
2060
|
var BufferList = __webpack_require__("./node_modules/duplexify/node_modules/readable-stream/lib/internal/streams/BufferList.js");
|
|
@@ -3177,7 +3177,7 @@ var __webpack_modules__ = {
|
|
|
3177
3177
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
3178
3178
|
}
|
|
3179
3179
|
var Buffer = __webpack_require__("./node_modules/duplexify/node_modules/safe-buffer/index.js").Buffer;
|
|
3180
|
-
var util = __webpack_require__("?
|
|
3180
|
+
var util = __webpack_require__("?82dc");
|
|
3181
3181
|
function copyBuffer(src, target, offset) {
|
|
3182
3182
|
src.copy(target, offset);
|
|
3183
3183
|
}
|
|
@@ -4742,7 +4742,7 @@ var __webpack_modules__ = {
|
|
|
4742
4742
|
},
|
|
4743
4743
|
"./node_modules/global/document.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4744
4744
|
var topLevel = void 0 !== __webpack_require__.g ? __webpack_require__.g : 'undefined' != typeof window ? window : {};
|
|
4745
|
-
var minDoc = __webpack_require__("?
|
|
4745
|
+
var minDoc = __webpack_require__("?7a90");
|
|
4746
4746
|
var doccy;
|
|
4747
4747
|
if ('undefined' != typeof document) doccy = document;
|
|
4748
4748
|
else {
|
|
@@ -5174,7 +5174,7 @@ var __webpack_modules__ = {
|
|
|
5174
5174
|
}
|
|
5175
5175
|
return $replace.call(str, sepRegex, '$&_');
|
|
5176
5176
|
}
|
|
5177
|
-
var utilInspect = __webpack_require__("?
|
|
5177
|
+
var utilInspect = __webpack_require__("?aa23");
|
|
5178
5178
|
var inspectCustom = utilInspect.custom;
|
|
5179
5179
|
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
5180
5180
|
var quotes = {
|
|
@@ -8250,7 +8250,7 @@ var __webpack_modules__ = {
|
|
|
8250
8250
|
}
|
|
8251
8251
|
var util = Object.create(__webpack_require__("./node_modules/core-util-is/lib/util.js"));
|
|
8252
8252
|
util.inherits = __webpack_require__("./node_modules/inherits/inherits_browser.js");
|
|
8253
|
-
var debugUtil = __webpack_require__("?
|
|
8253
|
+
var debugUtil = __webpack_require__("?5f55");
|
|
8254
8254
|
var debug = void 0;
|
|
8255
8255
|
debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog('stream') : function() {};
|
|
8256
8256
|
var BufferList = __webpack_require__("./node_modules/websocket-stream/node_modules/readable-stream/lib/internal/streams/BufferList.js");
|
|
@@ -9373,7 +9373,7 @@ var __webpack_modules__ = {
|
|
|
9373
9373
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
9374
9374
|
}
|
|
9375
9375
|
var Buffer = __webpack_require__("./node_modules/websocket-stream/node_modules/safe-buffer/index.js").Buffer;
|
|
9376
|
-
var util = __webpack_require__("?
|
|
9376
|
+
var util = __webpack_require__("?9936");
|
|
9377
9377
|
function copyBuffer(src, target, offset) {
|
|
9378
9378
|
src.copy(target, offset);
|
|
9379
9379
|
}
|
|
@@ -9973,16 +9973,16 @@ var __webpack_modules__ = {
|
|
|
9973
9973
|
}
|
|
9974
9974
|
}
|
|
9975
9975
|
},
|
|
9976
|
-
"
|
|
9976
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
|
|
9977
9977
|
"use strict";
|
|
9978
9978
|
__webpack_require__.d(__webpack_exports__, {
|
|
9979
9979
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
9980
9980
|
});
|
|
9981
|
-
var
|
|
9982
|
-
var
|
|
9983
|
-
var
|
|
9984
|
-
var
|
|
9985
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
9981
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
9982
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
9983
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
9984
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
9985
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
9986
9986
|
___CSS_LOADER_EXPORT___.push([
|
|
9987
9987
|
module.id,
|
|
9988
9988
|
`@keyframes blink {
|
|
@@ -10126,13 +10126,13 @@ var __webpack_modules__ = {
|
|
|
10126
10126
|
]);
|
|
10127
10127
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
10128
10128
|
},
|
|
10129
|
-
"?
|
|
10130
|
-
"?
|
|
10131
|
-
"?
|
|
10132
|
-
"?
|
|
10133
|
-
"?
|
|
10134
|
-
"?
|
|
10135
|
-
"./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
10129
|
+
"?82dc": function() {},
|
|
10130
|
+
"?2927": function() {},
|
|
10131
|
+
"?7a90": function() {},
|
|
10132
|
+
"?aa23": function() {},
|
|
10133
|
+
"?9936": function() {},
|
|
10134
|
+
"?5f55": function() {},
|
|
10135
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
10136
10136
|
"use strict";
|
|
10137
10137
|
module.exports = function(cssWithMappingToString) {
|
|
10138
10138
|
var list = [];
|
|
@@ -10186,13 +10186,13 @@ var __webpack_modules__ = {
|
|
|
10186
10186
|
return list;
|
|
10187
10187
|
};
|
|
10188
10188
|
},
|
|
10189
|
-
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
10189
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
10190
10190
|
"use strict";
|
|
10191
10191
|
module.exports = function(i) {
|
|
10192
10192
|
return i[1];
|
|
10193
10193
|
};
|
|
10194
10194
|
},
|
|
10195
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
10195
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
10196
10196
|
"use strict";
|
|
10197
10197
|
var stylesInDOM = [];
|
|
10198
10198
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10271,7 +10271,7 @@ var __webpack_modules__ = {
|
|
|
10271
10271
|
};
|
|
10272
10272
|
};
|
|
10273
10273
|
},
|
|
10274
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
10274
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
10275
10275
|
"use strict";
|
|
10276
10276
|
var memo = {};
|
|
10277
10277
|
function getTarget(target) {
|
|
@@ -10293,7 +10293,7 @@ var __webpack_modules__ = {
|
|
|
10293
10293
|
}
|
|
10294
10294
|
module.exports = insertBySelector;
|
|
10295
10295
|
},
|
|
10296
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
10296
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
10297
10297
|
"use strict";
|
|
10298
10298
|
function insertStyleElement(options) {
|
|
10299
10299
|
var element = document.createElement("style");
|
|
@@ -10303,7 +10303,7 @@ var __webpack_modules__ = {
|
|
|
10303
10303
|
}
|
|
10304
10304
|
module.exports = insertStyleElement;
|
|
10305
10305
|
},
|
|
10306
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10306
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10307
10307
|
"use strict";
|
|
10308
10308
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10309
10309
|
var nonce = __webpack_require__.nc;
|
|
@@ -10311,7 +10311,7 @@ var __webpack_modules__ = {
|
|
|
10311
10311
|
}
|
|
10312
10312
|
module.exports = setAttributesWithoutAttributes;
|
|
10313
10313
|
},
|
|
10314
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
10314
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
10315
10315
|
"use strict";
|
|
10316
10316
|
function apply(styleElement, options, obj) {
|
|
10317
10317
|
var css = "";
|
|
@@ -10348,7 +10348,7 @@ var __webpack_modules__ = {
|
|
|
10348
10348
|
}
|
|
10349
10349
|
module.exports = domAPI;
|
|
10350
10350
|
},
|
|
10351
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
10351
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
10352
10352
|
"use strict";
|
|
10353
10353
|
function styleTagTransform(css, styleElement) {
|
|
10354
10354
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10429,8 +10429,8 @@ var __webpack_exports__ = {};
|
|
|
10429
10429
|
"use strict";
|
|
10430
10430
|
__webpack_require__.r(__webpack_exports__);
|
|
10431
10431
|
__webpack_require__.d(__webpack_exports__, {
|
|
10432
|
-
|
|
10433
|
-
|
|
10432
|
+
VideomailClient: ()=>src_client,
|
|
10433
|
+
VideoType: ()=>VideoType_VideoType
|
|
10434
10434
|
});
|
|
10435
10435
|
const constants = {
|
|
10436
10436
|
SITE_NAME_LABEL: "x-videomail-site-name",
|
|
@@ -10602,7 +10602,7 @@ var __webpack_exports__ = {};
|
|
|
10602
10602
|
breakLength: 1 / 0
|
|
10603
10603
|
}).replace(/\s+/gu, " ").replace(/\r?\n/gu, "");
|
|
10604
10604
|
}
|
|
10605
|
-
function
|
|
10605
|
+
function pretty(anything) {
|
|
10606
10606
|
if (anything instanceof HTMLElement) {
|
|
10607
10607
|
if (anything.id) return `#${anything.id}`;
|
|
10608
10608
|
if (anything.className) return `.${anything.className}`;
|
|
@@ -10610,7 +10610,7 @@ var __webpack_exports__ = {};
|
|
|
10610
10610
|
}
|
|
10611
10611
|
return inspect(anything);
|
|
10612
10612
|
}
|
|
10613
|
-
const
|
|
10613
|
+
const util_pretty = pretty;
|
|
10614
10614
|
function isAudioEnabled(options) {
|
|
10615
10615
|
return Boolean(options.audio.enabled);
|
|
10616
10616
|
}
|
|
@@ -13632,7 +13632,7 @@ var __webpack_exports__ = {};
|
|
|
13632
13632
|
return obj;
|
|
13633
13633
|
}
|
|
13634
13634
|
const FALLBACK_VIDEO_TYPE = VideoType_VideoType.MP4;
|
|
13635
|
-
class
|
|
13635
|
+
class Browser_Browser {
|
|
13636
13636
|
isIOS() {
|
|
13637
13637
|
return "iOS" === this.result.os.name;
|
|
13638
13638
|
}
|
|
@@ -13680,7 +13680,7 @@ var __webpack_exports__ = {};
|
|
|
13680
13680
|
const message = "Unable to access webcam";
|
|
13681
13681
|
let explanation;
|
|
13682
13682
|
explanation = this.isChromeBased() ? "Click on the allow button to grant access to your webcam" : this.isFirefox() ? "Please grant Firefox access to your webcam" : "Your system does not let your browser access your webcam";
|
|
13683
|
-
return
|
|
13683
|
+
return error_createError({
|
|
13684
13684
|
message,
|
|
13685
13685
|
explanation,
|
|
13686
13686
|
options: this.options
|
|
@@ -13706,13 +13706,13 @@ var __webpack_exports__ = {};
|
|
|
13706
13706
|
this.result = userAgentParser.getResult();
|
|
13707
13707
|
}
|
|
13708
13708
|
}
|
|
13709
|
-
const
|
|
13709
|
+
const Browser = Browser_Browser;
|
|
13710
13710
|
let getBrowser_browser;
|
|
13711
|
-
function
|
|
13712
|
-
if (!getBrowser_browser) getBrowser_browser = new
|
|
13711
|
+
function getBrowser(localOptions) {
|
|
13712
|
+
if (!getBrowser_browser) getBrowser_browser = new Browser(localOptions);
|
|
13713
13713
|
return getBrowser_browser;
|
|
13714
13714
|
}
|
|
13715
|
-
const
|
|
13715
|
+
const util_getBrowser = getBrowser;
|
|
13716
13716
|
function HTTPError_define_property(obj, key, value) {
|
|
13717
13717
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
13718
13718
|
value: value,
|
|
@@ -13723,12 +13723,12 @@ var __webpack_exports__ = {};
|
|
|
13723
13723
|
else obj[key] = value;
|
|
13724
13724
|
return obj;
|
|
13725
13725
|
}
|
|
13726
|
-
class
|
|
13726
|
+
class HTTPError extends Error {
|
|
13727
13727
|
constructor(...args){
|
|
13728
13728
|
super(...args), HTTPError_define_property(this, "code", void 0), HTTPError_define_property(this, "status", void 0);
|
|
13729
13729
|
}
|
|
13730
13730
|
}
|
|
13731
|
-
const
|
|
13731
|
+
const error_HTTPError = HTTPError;
|
|
13732
13732
|
function VideomailError_define_property(obj, key, value) {
|
|
13733
13733
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
13734
13734
|
value: value,
|
|
@@ -13739,7 +13739,7 @@ var __webpack_exports__ = {};
|
|
|
13739
13739
|
else obj[key] = value;
|
|
13740
13740
|
return obj;
|
|
13741
13741
|
}
|
|
13742
|
-
class VideomailError extends
|
|
13742
|
+
class VideomailError extends error_HTTPError {
|
|
13743
13743
|
hasClass(name) {
|
|
13744
13744
|
var _this_classList;
|
|
13745
13745
|
return null == (_this_classList = this.classList) ? void 0 : _this_classList.includes(name);
|
|
@@ -13756,7 +13756,7 @@ var __webpack_exports__ = {};
|
|
|
13756
13756
|
this.logLines = null == errData ? void 0 : errData.logLines;
|
|
13757
13757
|
this.siteName = options.siteName;
|
|
13758
13758
|
this.classList = classList;
|
|
13759
|
-
const browser =
|
|
13759
|
+
const browser = util_getBrowser(options);
|
|
13760
13760
|
const usefulClientData = browser.getUsefulData();
|
|
13761
13761
|
this.browser = usefulClientData.browser;
|
|
13762
13762
|
if (usefulClientData.cpu.architecture) this.cpu = usefulClientData.cpu;
|
|
@@ -13792,7 +13792,7 @@ var __webpack_exports__ = {};
|
|
|
13792
13792
|
VideomailError_define_property(VideomailError, "TRACK_START_ERROR", "TrackStartError");
|
|
13793
13793
|
VideomailError_define_property(VideomailError, "INVALID_STATE_ERROR", "InvalidStateError");
|
|
13794
13794
|
const error_VideomailError = VideomailError;
|
|
13795
|
-
function
|
|
13795
|
+
function createError(errorParams) {
|
|
13796
13796
|
const { exc, options } = errorParams;
|
|
13797
13797
|
let err = errorParams.err;
|
|
13798
13798
|
if (!err && exc instanceof Error) err = exc;
|
|
@@ -13802,7 +13802,7 @@ var __webpack_exports__ = {};
|
|
|
13802
13802
|
var _errorParams_classList;
|
|
13803
13803
|
const classList = null != (_errorParams_classList = errorParams.classList) ? _errorParams_classList : [];
|
|
13804
13804
|
const audioEnabled = isAudioEnabled(options);
|
|
13805
|
-
const browser =
|
|
13805
|
+
const browser = util_getBrowser(options);
|
|
13806
13806
|
var _err_name;
|
|
13807
13807
|
const errName = null != (_err_name = null == err ? void 0 : err.name) ? _err_name : null == err ? void 0 : err.constructor.name;
|
|
13808
13808
|
switch(errName){
|
|
@@ -13883,22 +13883,22 @@ var __webpack_exports__ = {};
|
|
|
13883
13883
|
break;
|
|
13884
13884
|
case error_VideomailError.DOM_EXCEPTION:
|
|
13885
13885
|
message = "DOM Exception";
|
|
13886
|
-
explanation =
|
|
13886
|
+
explanation = util_pretty(err);
|
|
13887
13887
|
break;
|
|
13888
13888
|
case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
|
|
13889
13889
|
message = "Media device not supported";
|
|
13890
|
-
explanation =
|
|
13890
|
+
explanation = util_pretty(err);
|
|
13891
13891
|
break;
|
|
13892
13892
|
default:
|
|
13893
13893
|
{
|
|
13894
13894
|
const originalExplanation = explanation;
|
|
13895
|
-
if (explanation && "object" == typeof explanation) explanation =
|
|
13895
|
+
if (explanation && "object" == typeof explanation) explanation = util_pretty(explanation);
|
|
13896
13896
|
if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
|
|
13897
13897
|
if (!message && (null == err ? void 0 : err.message)) message = err.message;
|
|
13898
13898
|
if (!message) {
|
|
13899
13899
|
if (errName) message = `${errName} (weird)`;
|
|
13900
|
-
if (!explanation) explanation =
|
|
13901
|
-
if (
|
|
13900
|
+
if (!explanation) explanation = util_pretty(err);
|
|
13901
|
+
if (util_pretty(message) === explanation) explanation = void 0;
|
|
13902
13902
|
}
|
|
13903
13903
|
break;
|
|
13904
13904
|
}
|
|
@@ -13928,7 +13928,7 @@ var __webpack_exports__ = {};
|
|
|
13928
13928
|
}
|
|
13929
13929
|
return videomailError;
|
|
13930
13930
|
}
|
|
13931
|
-
const
|
|
13931
|
+
const error_createError = createError;
|
|
13932
13932
|
function _extends() {
|
|
13933
13933
|
_extends = Object.assign || function(target) {
|
|
13934
13934
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -14059,7 +14059,7 @@ var __webpack_exports__ = {};
|
|
|
14059
14059
|
for(var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)params[_key - 1] = arguments[_key];
|
|
14060
14060
|
const firstParam = params[0];
|
|
14061
14061
|
const showParams = firstParam && ("object" != typeof firstParam || "object" == typeof firstParam && Object.keys(firstParam).filter(Boolean).length > 0);
|
|
14062
|
-
if (showParams) this.options.logger.debug(`${this.name} emits ${eventName} with ${
|
|
14062
|
+
if (showParams) this.options.logger.debug(`${this.name} emits ${eventName} with ${util_pretty(params)}`);
|
|
14063
14063
|
else this.options.logger.debug(`${this.name} emits ${eventName}`);
|
|
14064
14064
|
try {
|
|
14065
14065
|
Despot.EMITTER.emit(eventName, ...params);
|
|
@@ -14189,7 +14189,7 @@ var __webpack_exports__ = {};
|
|
|
14189
14189
|
break;
|
|
14190
14190
|
}
|
|
14191
14191
|
default:
|
|
14192
|
-
throw
|
|
14192
|
+
throw error_createError({
|
|
14193
14193
|
message: `Unsupported form control tag name $${tagName} found`,
|
|
14194
14194
|
options: this.options
|
|
14195
14195
|
});
|
|
@@ -14253,7 +14253,7 @@ var __webpack_exports__ = {};
|
|
|
14253
14253
|
}));
|
|
14254
14254
|
}
|
|
14255
14255
|
} else {
|
|
14256
|
-
const err =
|
|
14256
|
+
const err = error_createError({
|
|
14257
14257
|
message: "Videomail key for preview is missing!",
|
|
14258
14258
|
options: this.options
|
|
14259
14259
|
});
|
|
@@ -14319,7 +14319,7 @@ var __webpack_exports__ = {};
|
|
|
14319
14319
|
}
|
|
14320
14320
|
async doTheSubmit(e) {
|
|
14321
14321
|
if (e) {
|
|
14322
|
-
this.options.logger.debug(`Form: doTheSubmit(${
|
|
14322
|
+
this.options.logger.debug(`Form: doTheSubmit(${util_pretty(e)})`);
|
|
14323
14323
|
e.preventDefault();
|
|
14324
14324
|
} else this.options.logger.debug("Form: doTheSubmit()");
|
|
14325
14325
|
var _this_formElement_getAttribute;
|
|
@@ -14375,7 +14375,7 @@ var __webpack_exports__ = {};
|
|
|
14375
14375
|
}
|
|
14376
14376
|
const wrappers_form = Form;
|
|
14377
14377
|
var package_namespaceObject = {
|
|
14378
|
-
i8: "10.2.
|
|
14378
|
+
i8: "10.2.45"
|
|
14379
14379
|
};
|
|
14380
14380
|
function resource_define_property(obj, key, value) {
|
|
14381
14381
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -14394,7 +14394,7 @@ var __webpack_exports__ = {};
|
|
|
14394
14394
|
if ("error" in body) {
|
|
14395
14395
|
const message = body.error.message;
|
|
14396
14396
|
const cause = body.error.cause;
|
|
14397
|
-
const error = new
|
|
14397
|
+
const error = new error_HTTPError(message, {
|
|
14398
14398
|
cause
|
|
14399
14399
|
});
|
|
14400
14400
|
if (body.error.name) error.name = body.error.name;
|
|
@@ -14430,7 +14430,7 @@ var __webpack_exports__ = {};
|
|
|
14430
14430
|
const videomail = request.body;
|
|
14431
14431
|
return videomail;
|
|
14432
14432
|
} catch (exc) {
|
|
14433
|
-
throw
|
|
14433
|
+
throw error_createError({
|
|
14434
14434
|
exc: findOriginalExc(exc),
|
|
14435
14435
|
options: this.options
|
|
14436
14436
|
});
|
|
@@ -14446,7 +14446,7 @@ var __webpack_exports__ = {};
|
|
|
14446
14446
|
const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(videomail).timeout(this.options.timeouts.connection);
|
|
14447
14447
|
return request;
|
|
14448
14448
|
} catch (exc) {
|
|
14449
|
-
throw
|
|
14449
|
+
throw error_createError({
|
|
14450
14450
|
exc: findOriginalExc(exc),
|
|
14451
14451
|
options: this.options
|
|
14452
14452
|
});
|
|
@@ -14505,7 +14505,7 @@ var __webpack_exports__ = {};
|
|
|
14505
14505
|
} else res = await this.write(form_FormMethod.POST, newVideomail);
|
|
14506
14506
|
return res;
|
|
14507
14507
|
} catch (exc) {
|
|
14508
|
-
throw
|
|
14508
|
+
throw error_createError({
|
|
14509
14509
|
exc: findOriginalExc(exc),
|
|
14510
14510
|
options: this.options
|
|
14511
14511
|
});
|
|
@@ -14524,7 +14524,7 @@ var __webpack_exports__ = {};
|
|
|
14524
14524
|
formType = "form";
|
|
14525
14525
|
break;
|
|
14526
14526
|
default:
|
|
14527
|
-
throw
|
|
14527
|
+
throw error_createError({
|
|
14528
14528
|
err: new Error(`Invalid enctype given: ${this.options.enctype}`),
|
|
14529
14529
|
options: this.options
|
|
14530
14530
|
});
|
|
@@ -14533,7 +14533,7 @@ var __webpack_exports__ = {};
|
|
|
14533
14533
|
const res = await client_default().post(url).type(formType).set("Timezone-Id", this.timezoneId).send(formData).timeout(this.options.timeouts.connection);
|
|
14534
14534
|
return res;
|
|
14535
14535
|
} catch (exc) {
|
|
14536
|
-
throw
|
|
14536
|
+
throw error_createError({
|
|
14537
14537
|
exc: findOriginalExc(exc),
|
|
14538
14538
|
options: this.options
|
|
14539
14539
|
});
|
|
@@ -14563,28 +14563,28 @@ var __webpack_exports__ = {};
|
|
|
14563
14563
|
else element.classList.remove("disabled");
|
|
14564
14564
|
}
|
|
14565
14565
|
const html_enableElement = enableElement;
|
|
14566
|
-
function
|
|
14566
|
+
function hideElement_hideElement(element) {
|
|
14567
14567
|
if (!element) return;
|
|
14568
14568
|
hidden_default()(element, true);
|
|
14569
14569
|
}
|
|
14570
|
-
const
|
|
14571
|
-
function
|
|
14570
|
+
const hideElement = hideElement_hideElement;
|
|
14571
|
+
function showElement(element) {
|
|
14572
14572
|
if (!element) return;
|
|
14573
14573
|
hidden_default()(element, false);
|
|
14574
14574
|
}
|
|
14575
|
-
const
|
|
14576
|
-
function
|
|
14575
|
+
const html_showElement = showElement;
|
|
14576
|
+
function isShown_isShown(element) {
|
|
14577
14577
|
if (!element) return false;
|
|
14578
14578
|
return !hidden_default()(element);
|
|
14579
14579
|
}
|
|
14580
|
-
const
|
|
14581
|
-
function
|
|
14580
|
+
const isShown = isShown_isShown;
|
|
14581
|
+
function adjustButton(buttonElement, show, type, disabled) {
|
|
14582
14582
|
if (disabled) html_disableElement(buttonElement);
|
|
14583
14583
|
if (type) buttonElement.type = type;
|
|
14584
|
-
if (!show)
|
|
14584
|
+
if (!show) hideElement(buttonElement);
|
|
14585
14585
|
return buttonElement;
|
|
14586
14586
|
}
|
|
14587
|
-
const
|
|
14587
|
+
const html_adjustButton = adjustButton;
|
|
14588
14588
|
function buttons_define_property(obj, key, value) {
|
|
14589
14589
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
14590
14590
|
value: value,
|
|
@@ -14650,12 +14650,12 @@ var __webpack_exports__ = {};
|
|
|
14650
14650
|
var _this_buttonsElement;
|
|
14651
14651
|
buttonElement = null == (_this_buttonsElement = this.buttonsElement) ? void 0 : _this_buttonsElement.querySelector(`.${buttonClass}`);
|
|
14652
14652
|
}
|
|
14653
|
-
if (buttonElement) buttonElement =
|
|
14653
|
+
if (buttonElement) buttonElement = html_adjustButton(buttonElement, show, type, disabled);
|
|
14654
14654
|
else {
|
|
14655
14655
|
buttonElement = document.createElement("button");
|
|
14656
14656
|
buttonElement.classList.add(buttonClass);
|
|
14657
14657
|
if (this.options.selectors.buttonClass) buttonElement.classList.add(this.options.selectors.buttonClass);
|
|
14658
|
-
buttonElement =
|
|
14658
|
+
buttonElement = html_adjustButton(buttonElement, show, type, disabled);
|
|
14659
14659
|
buttonElement.innerHTML = text;
|
|
14660
14660
|
if (this.submitButton && contains_default()(this.buttonsElement, this.submitButton)) {
|
|
14661
14661
|
var _this_buttonsElement1;
|
|
@@ -14703,34 +14703,34 @@ var __webpack_exports__ = {};
|
|
|
14703
14703
|
}
|
|
14704
14704
|
}
|
|
14705
14705
|
onFormReady(params) {
|
|
14706
|
-
if (!
|
|
14707
|
-
if (!(null == params ? void 0 : params.paused))
|
|
14706
|
+
if (!isShown(this.recordAgainButton)) {
|
|
14707
|
+
if (!(null == params ? void 0 : params.paused)) html_showElement(this.recordButton);
|
|
14708
14708
|
}
|
|
14709
14709
|
if (!(null == params ? void 0 : params.paused)) {
|
|
14710
14710
|
html_disableElement(this.previewButton);
|
|
14711
|
-
|
|
14711
|
+
hideElement(this.previewButton);
|
|
14712
14712
|
}
|
|
14713
14713
|
if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
14714
14714
|
}
|
|
14715
14715
|
onGoingBack() {
|
|
14716
|
-
|
|
14717
|
-
|
|
14718
|
-
|
|
14716
|
+
hideElement(this.recordAgainButton);
|
|
14717
|
+
html_showElement(this.recordButton);
|
|
14718
|
+
html_showElement(this.submitButton);
|
|
14719
14719
|
}
|
|
14720
14720
|
onReplayShown() {
|
|
14721
14721
|
this.hide();
|
|
14722
14722
|
}
|
|
14723
14723
|
onUserMediaReady(params) {
|
|
14724
14724
|
this.onFormReady();
|
|
14725
|
-
|
|
14726
|
-
|
|
14727
|
-
|
|
14728
|
-
if (
|
|
14729
|
-
else if (
|
|
14725
|
+
html_showElement(this.buttonsElement);
|
|
14726
|
+
html_showElement(this.audioOnRadioPair);
|
|
14727
|
+
html_showElement(this.audioOffRadioPair);
|
|
14728
|
+
if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
|
|
14729
|
+
else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
|
|
14730
14730
|
if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
|
|
14731
14731
|
if (!params.recordWhenReady) {
|
|
14732
|
-
if (
|
|
14733
|
-
if (
|
|
14732
|
+
if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
|
|
14733
|
+
if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
|
|
14734
14734
|
}
|
|
14735
14735
|
}
|
|
14736
14736
|
onResetting() {
|
|
@@ -14738,11 +14738,11 @@ var __webpack_exports__ = {};
|
|
|
14738
14738
|
this.reset();
|
|
14739
14739
|
}
|
|
14740
14740
|
onPreview() {
|
|
14741
|
-
|
|
14742
|
-
|
|
14741
|
+
hideElement(this.recordButton);
|
|
14742
|
+
hideElement(this.previewButton);
|
|
14743
14743
|
html_disableElement(this.audioOnRadioPair);
|
|
14744
14744
|
html_disableElement(this.audioOffRadioPair);
|
|
14745
|
-
|
|
14745
|
+
html_showElement(this.recordAgainButton);
|
|
14746
14746
|
html_enableElement(this.recordAgainButton);
|
|
14747
14747
|
if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
14748
14748
|
}
|
|
@@ -14751,23 +14751,23 @@ var __webpack_exports__ = {};
|
|
|
14751
14751
|
}
|
|
14752
14752
|
adjustButtonsForPause() {
|
|
14753
14753
|
if (!this.isCountingDown()) {
|
|
14754
|
-
if (this.pauseButton)
|
|
14755
|
-
|
|
14754
|
+
if (this.pauseButton) hideElement(this.pauseButton);
|
|
14755
|
+
html_showElement(this.resumeButton);
|
|
14756
14756
|
html_enableElement(this.resumeButton);
|
|
14757
|
-
|
|
14758
|
-
|
|
14757
|
+
hideElement(this.recordButton);
|
|
14758
|
+
html_showElement(this.previewButton);
|
|
14759
14759
|
html_enableElement(this.previewButton);
|
|
14760
14760
|
}
|
|
14761
14761
|
}
|
|
14762
14762
|
onFirstFrameSent() {
|
|
14763
|
-
|
|
14764
|
-
|
|
14763
|
+
hideElement(this.recordButton);
|
|
14764
|
+
hideElement(this.recordAgainButton);
|
|
14765
14765
|
if (this.pauseButton) {
|
|
14766
|
-
|
|
14766
|
+
html_showElement(this.pauseButton);
|
|
14767
14767
|
html_enableElement(this.pauseButton);
|
|
14768
14768
|
}
|
|
14769
14769
|
html_enableElement(this.previewButton);
|
|
14770
|
-
|
|
14770
|
+
html_showElement(this.previewButton);
|
|
14771
14771
|
}
|
|
14772
14772
|
onRecording(params) {
|
|
14773
14773
|
if (params.framesCount > 1) this.onFirstFrameSent();
|
|
@@ -14779,18 +14779,18 @@ var __webpack_exports__ = {};
|
|
|
14779
14779
|
}
|
|
14780
14780
|
}
|
|
14781
14781
|
onResuming() {
|
|
14782
|
-
|
|
14783
|
-
|
|
14782
|
+
hideElement(this.resumeButton);
|
|
14783
|
+
hideElement(this.recordButton);
|
|
14784
14784
|
if (this.pauseButton) {
|
|
14785
14785
|
html_enableElement(this.pauseButton);
|
|
14786
|
-
|
|
14786
|
+
html_showElement(this.pauseButton);
|
|
14787
14787
|
}
|
|
14788
14788
|
}
|
|
14789
14789
|
onStopping() {
|
|
14790
14790
|
html_disableElement(this.previewButton);
|
|
14791
14791
|
html_disableElement(this.recordButton);
|
|
14792
|
-
|
|
14793
|
-
|
|
14792
|
+
hideElement(this.pauseButton);
|
|
14793
|
+
hideElement(this.resumeButton);
|
|
14794
14794
|
}
|
|
14795
14795
|
onCountdown() {
|
|
14796
14796
|
html_disableElement(this.recordButton);
|
|
@@ -14815,12 +14815,12 @@ var __webpack_exports__ = {};
|
|
|
14815
14815
|
if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
14816
14816
|
}
|
|
14817
14817
|
onHidden() {
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
|
|
14818
|
+
hideElement(this.recordButton);
|
|
14819
|
+
hideElement(this.previewButton);
|
|
14820
|
+
hideElement(this.recordAgainButton);
|
|
14821
|
+
hideElement(this.resumeButton);
|
|
14822
|
+
hideElement(this.audioOnRadioPair);
|
|
14823
|
+
hideElement(this.audioOffRadioPair);
|
|
14824
14824
|
}
|
|
14825
14825
|
onEnablingAudio() {
|
|
14826
14826
|
this.options.logger.debug("Buttons: onEnablingAudio()");
|
|
@@ -14840,7 +14840,7 @@ var __webpack_exports__ = {};
|
|
|
14840
14840
|
this.container.recordAgain();
|
|
14841
14841
|
}
|
|
14842
14842
|
onStartingOver() {
|
|
14843
|
-
|
|
14843
|
+
html_showElement(this.submitButton);
|
|
14844
14844
|
}
|
|
14845
14845
|
submit() {
|
|
14846
14846
|
this.container.submit();
|
|
@@ -14913,7 +14913,7 @@ var __webpack_exports__ = {};
|
|
|
14913
14913
|
});
|
|
14914
14914
|
this.on("CONNECTED", ()=>{
|
|
14915
14915
|
if (this.options.loadUserMediaOnRecord) {
|
|
14916
|
-
if (
|
|
14916
|
+
if (isShown(this.recordButton)) html_enableElement(this.recordButton);
|
|
14917
14917
|
}
|
|
14918
14918
|
});
|
|
14919
14919
|
this.on("DISCONNECTED", ()=>{
|
|
@@ -14961,7 +14961,7 @@ var __webpack_exports__ = {};
|
|
|
14961
14961
|
this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
|
|
14962
14962
|
this.container.appendChild(this.buttonsElement);
|
|
14963
14963
|
}
|
|
14964
|
-
|
|
14964
|
+
hideElement(this.buttonsElement);
|
|
14965
14965
|
this.buildButtons();
|
|
14966
14966
|
if (!this.built) this.initEvents();
|
|
14967
14967
|
this.built = true;
|
|
@@ -14977,20 +14977,20 @@ var __webpack_exports__ = {};
|
|
|
14977
14977
|
}
|
|
14978
14978
|
hide() {
|
|
14979
14979
|
let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
14980
|
-
|
|
14980
|
+
hideElement(this.buttonsElement);
|
|
14981
14981
|
if (deep) {
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14982
|
+
hideElement(this.recordButton);
|
|
14983
|
+
hideElement(this.pauseButton);
|
|
14984
|
+
hideElement(this.resumeButton);
|
|
14985
|
+
hideElement(this.previewButton);
|
|
14986
|
+
hideElement(this.recordAgainButton);
|
|
14987
|
+
hideElement(this.submitButton);
|
|
14988
|
+
hideElement(this.audioOnRadioPair);
|
|
14989
|
+
hideElement(this.audioOffRadioPair);
|
|
14990
14990
|
}
|
|
14991
14991
|
}
|
|
14992
14992
|
show() {
|
|
14993
|
-
|
|
14993
|
+
html_showElement(this.buttonsElement);
|
|
14994
14994
|
}
|
|
14995
14995
|
isCountingDown() {
|
|
14996
14996
|
return this.container.isCountingDown();
|
|
@@ -15482,7 +15482,7 @@ var __webpack_exports__ = {};
|
|
|
15482
15482
|
super("RecorderInsides", options), recorderInsides_define_property(this, "recordNote", void 0), recorderInsides_define_property(this, "recordTimer", void 0), recorderInsides_define_property(this, "countdown", void 0), recorderInsides_define_property(this, "facingMode", void 0), recorderInsides_define_property(this, "pausedNote", void 0), recorderInsides_define_property(this, "built", false);
|
|
15483
15483
|
this.recordNote = new recorder_recordNote(visuals);
|
|
15484
15484
|
this.recordTimer = new recordTimer(visuals, this.recordNote, options);
|
|
15485
|
-
const browser =
|
|
15485
|
+
const browser = util_getBrowser(options);
|
|
15486
15486
|
if (options.video.countdown) this.countdown = new countdown(visuals, options);
|
|
15487
15487
|
if (options.video.facingModeButton && browser.isMobile()) this.facingMode = new facingMode(visuals, options);
|
|
15488
15488
|
if (options.enablePause) this.pausedNote = new pausedNote(visuals, options);
|
|
@@ -15605,12 +15605,12 @@ var __webpack_exports__ = {};
|
|
|
15605
15605
|
error(err) {
|
|
15606
15606
|
const message = err.message;
|
|
15607
15607
|
const explanation = err.explanation ? err.explanation.toString() : void 0;
|
|
15608
|
-
if (!message) this.options.logger.debug(`Weird empty error message generated for error ${
|
|
15608
|
+
if (!message) this.options.logger.debug(`Weird empty error message generated for error ${util_pretty(err)}`);
|
|
15609
15609
|
this.notify(message, explanation, {
|
|
15610
15610
|
blocking: true,
|
|
15611
15611
|
problem: true,
|
|
15612
15612
|
classList: err.getClassList(),
|
|
15613
|
-
removeDimensions:
|
|
15613
|
+
removeDimensions: util_getBrowser(this.options).isMobile()
|
|
15614
15614
|
});
|
|
15615
15615
|
}
|
|
15616
15616
|
getMessageElement() {
|
|
@@ -15952,7 +15952,7 @@ var __webpack_exports__ = {};
|
|
|
15952
15952
|
function getAudioContextClass() {
|
|
15953
15953
|
return window.AudioContext;
|
|
15954
15954
|
}
|
|
15955
|
-
class
|
|
15955
|
+
class AudioRecorder_AudioRecorder {
|
|
15956
15956
|
hasAudioContext() {
|
|
15957
15957
|
return Boolean(getAudioContextClass()) && Boolean(this.getAudioContext());
|
|
15958
15958
|
}
|
|
@@ -15974,19 +15974,19 @@ var __webpack_exports__ = {};
|
|
|
15974
15974
|
try {
|
|
15975
15975
|
this.audioInput = this.getAudioContext().createMediaStreamSource(localMediaStream);
|
|
15976
15976
|
} catch (exc) {
|
|
15977
|
-
throw
|
|
15977
|
+
throw error_createError({
|
|
15978
15978
|
message: "Webcam has no audio",
|
|
15979
15979
|
exc,
|
|
15980
15980
|
options: this.options
|
|
15981
15981
|
});
|
|
15982
15982
|
}
|
|
15983
15983
|
let { bufferSize } = this.options.audio;
|
|
15984
|
-
if ("auto" === bufferSize) bufferSize =
|
|
15985
|
-
if (!is_power_of_two_default()(bufferSize)) throw
|
|
15984
|
+
if ("auto" === bufferSize) bufferSize = util_getBrowser(this.options).isFirefox() ? 512 : 2048;
|
|
15985
|
+
if (!is_power_of_two_default()(bufferSize)) throw error_createError({
|
|
15986
15986
|
message: "Audio buffer size must be a power of two.",
|
|
15987
15987
|
options: this.options
|
|
15988
15988
|
});
|
|
15989
|
-
if (!this.options.audio.volume || src_options.audio.volume > 1) throw
|
|
15989
|
+
if (!this.options.audio.volume || src_options.audio.volume > 1) throw error_createError({
|
|
15990
15990
|
message: "Audio volume must be between zero and one.",
|
|
15991
15991
|
options: this.options
|
|
15992
15992
|
});
|
|
@@ -16011,7 +16011,7 @@ var __webpack_exports__ = {};
|
|
|
16011
16011
|
this.options.logger.debug("AudioRecorder: audio context is closed");
|
|
16012
16012
|
this.vcAudioContext = void 0;
|
|
16013
16013
|
}).catch(function(err) {
|
|
16014
|
-
if (err instanceof Error) throw
|
|
16014
|
+
if (err instanceof Error) throw error_createError({
|
|
16015
16015
|
err,
|
|
16016
16016
|
options: src_options
|
|
16017
16017
|
});
|
|
@@ -16032,7 +16032,7 @@ var __webpack_exports__ = {};
|
|
|
16032
16032
|
this.userMedia = userMedia;
|
|
16033
16033
|
}
|
|
16034
16034
|
}
|
|
16035
|
-
const
|
|
16035
|
+
const AudioRecorder = AudioRecorder_AudioRecorder;
|
|
16036
16036
|
const MEDIA_EVENTS = [
|
|
16037
16037
|
"loadstart",
|
|
16038
16038
|
"suspend",
|
|
@@ -16076,7 +16076,7 @@ var __webpack_exports__ = {};
|
|
|
16076
16076
|
attachMediaStream(stream) {
|
|
16077
16077
|
this.currentVisualStream = stream;
|
|
16078
16078
|
if (this.rawVisualUserMedia) this.rawVisualUserMedia.srcObject = stream;
|
|
16079
|
-
else throw
|
|
16079
|
+
else throw error_createError({
|
|
16080
16080
|
message: "Error attaching stream to element.",
|
|
16081
16081
|
explanation: "Contact the developer about this",
|
|
16082
16082
|
options: this.options
|
|
@@ -16102,7 +16102,7 @@ var __webpack_exports__ = {};
|
|
|
16102
16102
|
return false;
|
|
16103
16103
|
}
|
|
16104
16104
|
logEvent(eventType, params) {
|
|
16105
|
-
this.options.logger.debug(`UserMedia: ... ${EVENT_ASCII} event ${eventType}: ${
|
|
16105
|
+
this.options.logger.debug(`UserMedia: ... ${EVENT_ASCII} event ${eventType}: ${util_pretty(params)}`);
|
|
16106
16106
|
}
|
|
16107
16107
|
outputEvent(e) {
|
|
16108
16108
|
var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
|
|
@@ -16133,7 +16133,7 @@ var __webpack_exports__ = {};
|
|
|
16133
16133
|
this.playingPromiseReached = false;
|
|
16134
16134
|
if (isAudioEnabled(this.options)) {
|
|
16135
16135
|
var _this_audioRecorder;
|
|
16136
|
-
null != this.audioRecorder || (this.audioRecorder = new
|
|
16136
|
+
null != this.audioRecorder || (this.audioRecorder = new AudioRecorder(this, this.options));
|
|
16137
16137
|
}
|
|
16138
16138
|
const unloadAllEventListeners = ()=>{
|
|
16139
16139
|
var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
|
|
@@ -16148,7 +16148,7 @@ var __webpack_exports__ = {};
|
|
|
16148
16148
|
var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
|
|
16149
16149
|
null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.load();
|
|
16150
16150
|
if (null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.paused) {
|
|
16151
|
-
this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${
|
|
16151
|
+
this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${util_pretty(this.rawVisualUserMedia.played)}`);
|
|
16152
16152
|
let p;
|
|
16153
16153
|
try {
|
|
16154
16154
|
p = this.rawVisualUserMedia.play();
|
|
@@ -16198,7 +16198,7 @@ var __webpack_exports__ = {};
|
|
|
16198
16198
|
videoHeight: null == (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia4.videoHeight
|
|
16199
16199
|
});
|
|
16200
16200
|
null == (_this_rawVisualUserMedia5 = this.rawVisualUserMedia) || _this_rawVisualUserMedia5.removeEventListener("play", onPlay);
|
|
16201
|
-
if (this.hasEnded() || this.hasInvalidDimensions()) endedEarlyCallback(
|
|
16201
|
+
if (this.hasEnded() || this.hasInvalidDimensions()) endedEarlyCallback(error_createError({
|
|
16202
16202
|
message: "Already busy",
|
|
16203
16203
|
explanation: "Probably another browser window is using your webcam?",
|
|
16204
16204
|
options: this.options
|
|
@@ -16237,7 +16237,7 @@ var __webpack_exports__ = {};
|
|
|
16237
16237
|
if (videoTrack.label && videoTrack.label.length > 0) description = description.concat(videoTrack.label);
|
|
16238
16238
|
description = description.concat(` with enabled=${videoTrack.enabled}, muted=${videoTrack.muted}, readyState=${videoTrack.readyState}`);
|
|
16239
16239
|
this.options.logger.debug(`UserMedia: ${videoTrack.kind} detected. ${description}`);
|
|
16240
|
-
} else throw
|
|
16240
|
+
} else throw error_createError({
|
|
16241
16241
|
message: "Webcam is disabled",
|
|
16242
16242
|
explanation: "The video track seems to be disabled. Enable it in your system.",
|
|
16243
16243
|
options: this.options
|
|
@@ -16246,7 +16246,7 @@ var __webpack_exports__ = {};
|
|
|
16246
16246
|
null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.addEventListener("loadedmetadata", onLoadedMetaData);
|
|
16247
16247
|
null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.addEventListener("play", onPlay);
|
|
16248
16248
|
null == (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || _this_rawVisualUserMedia2.addEventListener("error", (err)=>{
|
|
16249
|
-
this.options.logger.warn(`Caught video element error event: ${
|
|
16249
|
+
this.options.logger.warn(`Caught video element error event: ${util_pretty(err)}`);
|
|
16250
16250
|
});
|
|
16251
16251
|
this.setVisualStream(localMediaStream);
|
|
16252
16252
|
play();
|
|
@@ -16311,14 +16311,14 @@ var __webpack_exports__ = {};
|
|
|
16311
16311
|
let rawHeight;
|
|
16312
16312
|
if (this.options.video.width || this.options.video.height) {
|
|
16313
16313
|
rawHeight = this.recorder.calculateHeight(responsive);
|
|
16314
|
-
if (!rawHeight || rawHeight < 1) throw
|
|
16314
|
+
if (!rawHeight || rawHeight < 1) throw error_createError({
|
|
16315
16315
|
message: "Bad dimensions",
|
|
16316
16316
|
explanation: "Calculated raw height cannot be less than 1!",
|
|
16317
16317
|
options: this.options
|
|
16318
16318
|
});
|
|
16319
16319
|
} else {
|
|
16320
16320
|
rawHeight = this.getVideoHeight();
|
|
16321
|
-
if (!rawHeight || rawHeight < 1) throw
|
|
16321
|
+
if (!rawHeight || rawHeight < 1) throw error_createError({
|
|
16322
16322
|
message: "Bad dimensions",
|
|
16323
16323
|
explanation: "Raw video height from DOM element cannot be less than 1!",
|
|
16324
16324
|
options: this.options
|
|
@@ -16371,18 +16371,18 @@ var __webpack_exports__ = {};
|
|
|
16371
16371
|
}
|
|
16372
16372
|
}
|
|
16373
16373
|
const visuals_userMedia = UserMedia;
|
|
16374
|
-
function
|
|
16374
|
+
function figureMinHeight(height, options) {
|
|
16375
16375
|
let minHeight;
|
|
16376
16376
|
if (options.video.height) {
|
|
16377
16377
|
minHeight = Math.min(options.video.height, height);
|
|
16378
|
-
if (minHeight < 1) throw
|
|
16378
|
+
if (minHeight < 1) throw error_createError({
|
|
16379
16379
|
message: `Got a min height less than 1 (${minHeight})!`,
|
|
16380
16380
|
options
|
|
16381
16381
|
});
|
|
16382
16382
|
} else minHeight = height;
|
|
16383
16383
|
return minHeight;
|
|
16384
16384
|
}
|
|
16385
|
-
const
|
|
16385
|
+
const dimensions_figureMinHeight = figureMinHeight;
|
|
16386
16386
|
function getRatio_getRatio(options, videoHeight, videoWidth) {
|
|
16387
16387
|
let ratio = 1;
|
|
16388
16388
|
const hasVideoDimensions = videoHeight && videoWidth;
|
|
@@ -16394,26 +16394,26 @@ var __webpack_exports__ = {};
|
|
|
16394
16394
|
return ratio;
|
|
16395
16395
|
}
|
|
16396
16396
|
const getRatio = getRatio_getRatio;
|
|
16397
|
-
function
|
|
16397
|
+
function limitHeight(height, options, calledFrom) {
|
|
16398
16398
|
let limitedHeight = document.documentElement.clientHeight;
|
|
16399
16399
|
if (height) limitedHeight = Math.min(height, limitedHeight);
|
|
16400
|
-
if (limitedHeight < 1) throw
|
|
16400
|
+
if (limitedHeight < 1) throw error_createError({
|
|
16401
16401
|
message: `Limited height ${limitedHeight} cannot be less than 1! (Called from ${calledFrom})`,
|
|
16402
16402
|
options
|
|
16403
16403
|
});
|
|
16404
16404
|
return limitedHeight;
|
|
16405
16405
|
}
|
|
16406
|
-
const
|
|
16406
|
+
const dimensions_limitHeight = limitHeight;
|
|
16407
16407
|
function calculateWidth(responsive, videoHeight, options, ratio) {
|
|
16408
|
-
let height =
|
|
16409
|
-
if (responsive) height =
|
|
16410
|
-
if (!height || height < 1) throw
|
|
16408
|
+
let height = dimensions_figureMinHeight(videoHeight, options);
|
|
16409
|
+
if (responsive) height = dimensions_limitHeight(height, options, "calculateWidth");
|
|
16410
|
+
if (!height || height < 1) throw error_createError({
|
|
16411
16411
|
message: `Height ${height} cannot be smaller than 1 when calculating width.`,
|
|
16412
16412
|
options
|
|
16413
16413
|
});
|
|
16414
16414
|
const chosenRatio = null != ratio ? ratio : getRatio(options, videoHeight);
|
|
16415
16415
|
const calculatedWidth = Math.round(height / chosenRatio);
|
|
16416
|
-
if (calculatedWidth < 1) throw
|
|
16416
|
+
if (calculatedWidth < 1) throw error_createError({
|
|
16417
16417
|
message: "Calculated width cannot be smaller than 1!",
|
|
16418
16418
|
options
|
|
16419
16419
|
});
|
|
@@ -16430,31 +16430,31 @@ var __webpack_exports__ = {};
|
|
|
16430
16430
|
return outerWidth;
|
|
16431
16431
|
}
|
|
16432
16432
|
const getOuterWidth = getOuterWidth_getOuterWidth;
|
|
16433
|
-
function
|
|
16433
|
+
function limitWidth(element, options, width) {
|
|
16434
16434
|
let limitedWidth;
|
|
16435
16435
|
const outerWidth = getOuterWidth(element);
|
|
16436
16436
|
limitedWidth = width && "number" == typeof width ? outerWidth > 0 && outerWidth < width ? outerWidth : width : outerWidth;
|
|
16437
|
-
if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw
|
|
16437
|
+
if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw error_createError({
|
|
16438
16438
|
message: "Limited width cannot be less than 1!",
|
|
16439
16439
|
options
|
|
16440
16440
|
});
|
|
16441
16441
|
return limitedWidth;
|
|
16442
16442
|
}
|
|
16443
|
-
const
|
|
16443
|
+
const dimensions_limitWidth = limitWidth;
|
|
16444
16444
|
function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
|
|
16445
16445
|
let width = videoWidth;
|
|
16446
|
-
if (width < 1) throw
|
|
16446
|
+
if (width < 1) throw error_createError({
|
|
16447
16447
|
message: `Unable to calculate height for target ${target} when width is less than 1 (= ${width}) and responsive mode is set to ${responsive}`,
|
|
16448
16448
|
options
|
|
16449
16449
|
});
|
|
16450
|
-
if (responsive && element) width =
|
|
16450
|
+
if (responsive && element) width = dimensions_limitWidth(element, options, width);
|
|
16451
16451
|
const chosenRatio = null != ratio ? ratio : getRatio(options, void 0, videoWidth);
|
|
16452
16452
|
const height = Math.round(width * chosenRatio);
|
|
16453
|
-
if (Number.isInteger(height) && height < 1) throw
|
|
16453
|
+
if (Number.isInteger(height) && height < 1) throw error_createError({
|
|
16454
16454
|
message: "Just calculated a height less than 1 which is wrong.",
|
|
16455
16455
|
options
|
|
16456
16456
|
});
|
|
16457
|
-
return
|
|
16457
|
+
return dimensions_figureMinHeight(height, options);
|
|
16458
16458
|
}
|
|
16459
16459
|
const dimensions_calculateHeight = calculateHeight;
|
|
16460
16460
|
var Buffer = __webpack_require__("./node_modules/buffer/index.js")["Buffer"];
|
|
@@ -16473,7 +16473,7 @@ var __webpack_exports__ = {};
|
|
|
16473
16473
|
writeStream(buffer, opts) {
|
|
16474
16474
|
if (this.stream) if (this.stream.destroyed) {
|
|
16475
16475
|
this.stopPings();
|
|
16476
|
-
const err =
|
|
16476
|
+
const err = error_createError({
|
|
16477
16477
|
message: "Already disconnected",
|
|
16478
16478
|
explanation: "Sorry, connection to the server has been destroyed. Please reload.",
|
|
16479
16479
|
options: this.options
|
|
@@ -16489,9 +16489,9 @@ var __webpack_exports__ = {};
|
|
|
16489
16489
|
try {
|
|
16490
16490
|
onFlushedCallback(opts);
|
|
16491
16491
|
} catch (exc) {
|
|
16492
|
-
const err =
|
|
16492
|
+
const err = error_createError({
|
|
16493
16493
|
message: "Failed to write stream buffer",
|
|
16494
|
-
explanation: `stream.write() failed because of ${
|
|
16494
|
+
explanation: `stream.write() failed because of ${util_pretty(exc)}`,
|
|
16495
16495
|
options: this.options,
|
|
16496
16496
|
exc
|
|
16497
16497
|
});
|
|
@@ -16501,9 +16501,9 @@ var __webpack_exports__ = {};
|
|
|
16501
16501
|
}
|
|
16502
16502
|
});
|
|
16503
16503
|
} catch (exc) {
|
|
16504
|
-
const err =
|
|
16504
|
+
const err = error_createError({
|
|
16505
16505
|
message: "Failed writing to server",
|
|
16506
|
-
explanation: `stream.write() failed because of ${
|
|
16506
|
+
explanation: `stream.write() failed because of ${util_pretty(exc)}`,
|
|
16507
16507
|
options: this.options,
|
|
16508
16508
|
exc
|
|
16509
16509
|
});
|
|
@@ -16532,7 +16532,7 @@ var __webpack_exports__ = {};
|
|
|
16532
16532
|
}
|
|
16533
16533
|
onUserMediaReady(params) {
|
|
16534
16534
|
try {
|
|
16535
|
-
this.options.logger.debug(`Recorder: onUserMediaReady(${params ?
|
|
16535
|
+
this.options.logger.debug(`Recorder: onUserMediaReady(${params ? util_pretty(params) : ""})`);
|
|
16536
16536
|
const switchingFacingMode = null == params ? void 0 : params.switchingFacingMode;
|
|
16537
16537
|
this.userMediaLoading = this.blocking = this.unloaded = this.submitting = false;
|
|
16538
16538
|
this.userMediaLoaded = true;
|
|
@@ -16572,11 +16572,11 @@ var __webpack_exports__ = {};
|
|
|
16572
16572
|
}
|
|
16573
16573
|
updateFrameProgress(args) {
|
|
16574
16574
|
if (args) {
|
|
16575
|
-
if (!args.frame) throw
|
|
16575
|
+
if (!args.frame) throw error_createError({
|
|
16576
16576
|
message: "The frame number is missing",
|
|
16577
16577
|
options: this.options
|
|
16578
16578
|
});
|
|
16579
|
-
} else throw
|
|
16579
|
+
} else throw error_createError({
|
|
16580
16580
|
message: "Arguments are missing for updating the frame progress",
|
|
16581
16581
|
options: this.options
|
|
16582
16582
|
});
|
|
@@ -16586,11 +16586,11 @@ var __webpack_exports__ = {};
|
|
|
16586
16586
|
}
|
|
16587
16587
|
updateSampleProgress(args) {
|
|
16588
16588
|
if (args) {
|
|
16589
|
-
if (!args.sample) throw
|
|
16589
|
+
if (!args.sample) throw error_createError({
|
|
16590
16590
|
message: "The audio sample number is missing",
|
|
16591
16591
|
options: this.options
|
|
16592
16592
|
});
|
|
16593
|
-
} else throw
|
|
16593
|
+
} else throw error_createError({
|
|
16594
16594
|
message: "Arguments are missing for updating the audio sample progress",
|
|
16595
16595
|
options: this.options
|
|
16596
16596
|
});
|
|
@@ -16599,7 +16599,7 @@ var __webpack_exports__ = {};
|
|
|
16599
16599
|
this.updateOverallProgress();
|
|
16600
16600
|
}
|
|
16601
16601
|
preview(args) {
|
|
16602
|
-
if (!args) throw
|
|
16602
|
+
if (!args) throw error_createError({
|
|
16603
16603
|
message: "Preview arguments are missing.",
|
|
16604
16604
|
options: this.options
|
|
16605
16605
|
});
|
|
@@ -16635,7 +16635,7 @@ var __webpack_exports__ = {};
|
|
|
16635
16635
|
});
|
|
16636
16636
|
} catch (exc) {
|
|
16637
16637
|
this.connecting = this.connected = false;
|
|
16638
|
-
const err =
|
|
16638
|
+
const err = error_createError({
|
|
16639
16639
|
message: "Failed to connect to server",
|
|
16640
16640
|
explanation: "Please upgrade your browser. Your current version does not seem to support websockets.",
|
|
16641
16641
|
options: this.options,
|
|
@@ -16672,7 +16672,7 @@ var __webpack_exports__ = {};
|
|
|
16672
16672
|
command = JSON.parse(data.toString());
|
|
16673
16673
|
} catch (exc) {
|
|
16674
16674
|
this.options.logger.debug(`Failed to parse command: ${exc}`);
|
|
16675
|
-
const err =
|
|
16675
|
+
const err = error_createError({
|
|
16676
16676
|
message: "Invalid server command",
|
|
16677
16677
|
explanation: `Contact us asap. Bad command was ${data.toString()}. `,
|
|
16678
16678
|
options: this.options,
|
|
@@ -16686,7 +16686,7 @@ var __webpack_exports__ = {};
|
|
|
16686
16686
|
}
|
|
16687
16687
|
});
|
|
16688
16688
|
this.stream.on("error", (err)=>{
|
|
16689
|
-
this.options.logger.debug(`${PIPE_SYMBOL}Stream *error* event emitted: ${
|
|
16689
|
+
this.options.logger.debug(`${PIPE_SYMBOL}Stream *error* event emitted: ${util_pretty(err)}`);
|
|
16690
16690
|
});
|
|
16691
16691
|
this.stream.on("drain", ()=>{
|
|
16692
16692
|
this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted (should not happen!)`);
|
|
@@ -16737,23 +16737,23 @@ var __webpack_exports__ = {};
|
|
|
16737
16737
|
this.userMediaLoading = false;
|
|
16738
16738
|
this.clearUserMediaTimeout();
|
|
16739
16739
|
const characteristics = null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.getCharacteristics();
|
|
16740
|
-
this.options.logger.debug(`Recorder: userMediaErrorCallback(), name: ${err.name}, message: ${err.message} and Webcam characteristics: ${characteristics ?
|
|
16740
|
+
this.options.logger.debug(`Recorder: userMediaErrorCallback(), name: ${err.name}, message: ${err.message} and Webcam characteristics: ${characteristics ? util_pretty(characteristics) : "none"}`);
|
|
16741
16741
|
const errorListeners = util_Despot.getListeners("ERROR");
|
|
16742
16742
|
if (null == errorListeners ? void 0 : errorListeners.length) {
|
|
16743
16743
|
if (err.name !== error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED) {
|
|
16744
|
-
const videomailError =
|
|
16744
|
+
const videomailError = error_createError({
|
|
16745
16745
|
err,
|
|
16746
16746
|
options: this.options
|
|
16747
16747
|
});
|
|
16748
16748
|
this.emit("ERROR", {
|
|
16749
16749
|
err: videomailError
|
|
16750
16750
|
});
|
|
16751
|
-
} else this.options.logger.debug(`Recorder: ignore user media error ${
|
|
16751
|
+
} else this.options.logger.debug(`Recorder: ignore user media error ${util_pretty(err)}`);
|
|
16752
16752
|
this.retryTimeout = window.setTimeout(this.initSocket.bind(this), this.options.timeouts.userMedia);
|
|
16753
|
-
} else if (this.unloaded) this.options.logger.debug(`Recorder: already unloaded. Not going to throw error ${
|
|
16753
|
+
} else if (this.unloaded) this.options.logger.debug(`Recorder: already unloaded. Not going to throw error ${util_pretty(err)}`);
|
|
16754
16754
|
else {
|
|
16755
|
-
this.options.logger.debug(`Recorder: no error listeners attached but throwing error ${
|
|
16756
|
-
throw
|
|
16755
|
+
this.options.logger.debug(`Recorder: no error listeners attached but throwing error ${util_pretty(err)}`);
|
|
16756
|
+
throw error_createError({
|
|
16757
16757
|
err,
|
|
16758
16758
|
message: "Unable to process this error since there are no error listeners anymore.",
|
|
16759
16759
|
options: this.options
|
|
@@ -16762,7 +16762,7 @@ var __webpack_exports__ = {};
|
|
|
16762
16762
|
}
|
|
16763
16763
|
getUserMediaCallback(localStream, params) {
|
|
16764
16764
|
if (!this.userMedia) throw new Error("No user media is defined");
|
|
16765
|
-
this.options.logger.debug(`Recorder: getUserMediaCallback(${params ?
|
|
16765
|
+
this.options.logger.debug(`Recorder: getUserMediaCallback(${params ? util_pretty(params) : ""})`);
|
|
16766
16766
|
if (this.showUserMedia()) try {
|
|
16767
16767
|
this.clearUserMediaTimeout();
|
|
16768
16768
|
this.userMedia.init(localStream, ()=>{
|
|
@@ -16779,7 +16779,7 @@ var __webpack_exports__ = {};
|
|
|
16779
16779
|
}
|
|
16780
16780
|
}
|
|
16781
16781
|
loadGenuineUserMedia(params) {
|
|
16782
|
-
this.options.logger.debug(`Recorder: loadGenuineUserMedia(${params ?
|
|
16782
|
+
this.options.logger.debug(`Recorder: loadGenuineUserMedia(${params ? util_pretty(params) : ""})`);
|
|
16783
16783
|
this.emit("ASKING_WEBCAM_PERMISSION");
|
|
16784
16784
|
const constraints = {
|
|
16785
16785
|
video: {
|
|
@@ -16807,8 +16807,8 @@ var __webpack_exports__ = {};
|
|
|
16807
16807
|
ideal: idealHeight
|
|
16808
16808
|
};
|
|
16809
16809
|
}
|
|
16810
|
-
this.options.logger.debug(`Recorder: our webcam constraints are: ${
|
|
16811
|
-
this.options.logger.debug(`Recorder: available webcam constraints are: ${
|
|
16810
|
+
this.options.logger.debug(`Recorder: our webcam constraints are: ${util_pretty(constraints)}`);
|
|
16811
|
+
this.options.logger.debug(`Recorder: available webcam constraints are: ${util_pretty(navigator.mediaDevices.getSupportedConstraints())}`);
|
|
16812
16812
|
const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
|
|
16813
16813
|
genuineUserMediaRequest.then((localStream)=>{
|
|
16814
16814
|
this.getUserMediaCallback(localStream, params);
|
|
@@ -16823,13 +16823,13 @@ var __webpack_exports__ = {};
|
|
|
16823
16823
|
return;
|
|
16824
16824
|
}
|
|
16825
16825
|
if (this.userMediaLoading) return void this.options.logger.debug("Recorder: skipping loadUserMedia() because it is already asking for permission");
|
|
16826
|
-
this.options.logger.debug(`Recorder: loadUserMedia(${params ?
|
|
16826
|
+
this.options.logger.debug(`Recorder: loadUserMedia(${params ? util_pretty(params) : ""})`);
|
|
16827
16827
|
this.emit("LOADING_USER_MEDIA");
|
|
16828
16828
|
try {
|
|
16829
16829
|
if (!navigator.mediaDevices) throw new Error("No media devices are available.");
|
|
16830
16830
|
this.userMediaTimeout = window.setTimeout(()=>{
|
|
16831
16831
|
if (!this.isReady()) {
|
|
16832
|
-
const err =
|
|
16832
|
+
const err = util_getBrowser(this.options).getNoAccessIssue();
|
|
16833
16833
|
this.emit("ERROR", {
|
|
16834
16834
|
err
|
|
16835
16835
|
});
|
|
@@ -16854,7 +16854,7 @@ var __webpack_exports__ = {};
|
|
|
16854
16854
|
executeCommand(command) {
|
|
16855
16855
|
if (this.unloaded) return;
|
|
16856
16856
|
try {
|
|
16857
|
-
if (command.args) this.options.logger.debug(`Server commanded: ${command.command} with ${
|
|
16857
|
+
if (command.args) this.options.logger.debug(`Server commanded: ${command.command} with ${util_pretty(command.args)}`);
|
|
16858
16858
|
else this.options.logger.debug(`Server commanded: ${command.command}`);
|
|
16859
16859
|
switch(command.command){
|
|
16860
16860
|
case "ready":
|
|
@@ -16870,7 +16870,7 @@ var __webpack_exports__ = {};
|
|
|
16870
16870
|
var _command_args_err, _command_args, _command_args1;
|
|
16871
16871
|
let explanation = "(No explanation given)";
|
|
16872
16872
|
if (null == (_command_args = command.args) ? void 0 : null == (_command_args_err = _command_args.err) ? void 0 : _command_args_err.message) explanation = command.args.err.message;
|
|
16873
|
-
const err =
|
|
16873
|
+
const err = error_createError({
|
|
16874
16874
|
message: "Websocket error from Videomail server",
|
|
16875
16875
|
explanation,
|
|
16876
16876
|
err: deserializeError(null == (_command_args1 = command.args) ? void 0 : _command_args1.err),
|
|
@@ -16895,7 +16895,7 @@ var __webpack_exports__ = {};
|
|
|
16895
16895
|
break;
|
|
16896
16896
|
default:
|
|
16897
16897
|
{
|
|
16898
|
-
const err =
|
|
16898
|
+
const err = error_createError({
|
|
16899
16899
|
message: `Unknown server command: ${command.command}`,
|
|
16900
16900
|
options: this.options
|
|
16901
16901
|
});
|
|
@@ -16920,7 +16920,7 @@ var __webpack_exports__ = {};
|
|
|
16920
16920
|
writeCommand(command, args, cb) {
|
|
16921
16921
|
if (this.connected) {
|
|
16922
16922
|
if (this.stream) {
|
|
16923
|
-
if (args) this.options.logger.debug(`$ ${command} with ${
|
|
16923
|
+
if (args) this.options.logger.debug(`$ ${command} with ${util_pretty(args)}`);
|
|
16924
16924
|
else this.options.logger.debug(`$ ${command}`);
|
|
16925
16925
|
const commandObj = {
|
|
16926
16926
|
command,
|
|
@@ -16964,7 +16964,7 @@ var __webpack_exports__ = {};
|
|
|
16964
16964
|
stop(params) {
|
|
16965
16965
|
var _this_loop;
|
|
16966
16966
|
if (!this.userMedia) throw new Error("No user media defined, unable to stop");
|
|
16967
|
-
this.options.logger.debug(`Recorder: stop(${params ?
|
|
16967
|
+
this.options.logger.debug(`Recorder: stop(${params ? util_pretty(params) : ""})`);
|
|
16968
16968
|
const limitReached = null == params ? void 0 : params.limitReached;
|
|
16969
16969
|
this.emit("STOPPING", {
|
|
16970
16970
|
limitReached
|
|
@@ -17055,7 +17055,7 @@ var __webpack_exports__ = {};
|
|
|
17055
17055
|
}
|
|
17056
17056
|
pause(params) {
|
|
17057
17057
|
var _this_userMedia;
|
|
17058
|
-
if (params) this.options.logger.debug(`pause() at frame ${this.framesCount} with ${
|
|
17058
|
+
if (params) this.options.logger.debug(`pause() at frame ${this.framesCount} with ${util_pretty(params)}`);
|
|
17059
17059
|
else this.options.logger.debug(`pause() at frame ${this.framesCount}`);
|
|
17060
17060
|
null == (_this_userMedia = this.userMedia) || _this_userMedia.pause();
|
|
17061
17061
|
this.loop.stop();
|
|
@@ -17101,7 +17101,7 @@ var __webpack_exports__ = {};
|
|
|
17101
17101
|
});
|
|
17102
17102
|
this.visuals.checkTimer(elapsedTime);
|
|
17103
17103
|
}
|
|
17104
|
-
} else throw
|
|
17104
|
+
} else throw error_createError({
|
|
17105
17105
|
message: "Failed to extract webcam data.",
|
|
17106
17106
|
options: this.options
|
|
17107
17107
|
});
|
|
@@ -17133,7 +17133,7 @@ var __webpack_exports__ = {};
|
|
|
17133
17133
|
recordWhenReady: true
|
|
17134
17134
|
});
|
|
17135
17135
|
else {
|
|
17136
|
-
const err =
|
|
17136
|
+
const err = error_createError({
|
|
17137
17137
|
message: "Load and enable your camera first",
|
|
17138
17138
|
options: this.options
|
|
17139
17139
|
});
|
|
@@ -17147,7 +17147,7 @@ var __webpack_exports__ = {};
|
|
|
17147
17147
|
if (!this.userMedia) throw new Error("No user media defined, unable to create canvas");
|
|
17148
17148
|
this.canvas = this.userMedia.createCanvas();
|
|
17149
17149
|
} catch (exc) {
|
|
17150
|
-
const err =
|
|
17150
|
+
const err = error_createError({
|
|
17151
17151
|
exc,
|
|
17152
17152
|
options: this.options
|
|
17153
17153
|
});
|
|
@@ -17158,7 +17158,7 @@ var __webpack_exports__ = {};
|
|
|
17158
17158
|
}
|
|
17159
17159
|
this.ctx = this.canvas.getContext("2d");
|
|
17160
17160
|
if (!this.canvas.width) {
|
|
17161
|
-
const err =
|
|
17161
|
+
const err = error_createError({
|
|
17162
17162
|
message: "Canvas has an invalid width.",
|
|
17163
17163
|
options: this.options
|
|
17164
17164
|
});
|
|
@@ -17168,7 +17168,7 @@ var __webpack_exports__ = {};
|
|
|
17168
17168
|
return;
|
|
17169
17169
|
}
|
|
17170
17170
|
if (!this.canvas.height) {
|
|
17171
|
-
const err =
|
|
17171
|
+
const err = error_createError({
|
|
17172
17172
|
message: "Canvas has an invalid height.",
|
|
17173
17173
|
options: this.options
|
|
17174
17174
|
});
|
|
@@ -17232,10 +17232,10 @@ var __webpack_exports__ = {};
|
|
|
17232
17232
|
}
|
|
17233
17233
|
}
|
|
17234
17234
|
switchFacingMode() {
|
|
17235
|
-
if (!
|
|
17235
|
+
if (!util_getBrowser(this.options).isMobile()) return;
|
|
17236
17236
|
if ("user" === this.facingMode) this.facingMode = "environment";
|
|
17237
17237
|
else if ("environment" === this.facingMode) this.facingMode = "user";
|
|
17238
|
-
else this.options.logger.warn(`Recorder: unsupported facing mode ${
|
|
17238
|
+
else this.options.logger.warn(`Recorder: unsupported facing mode ${util_pretty(this.facingMode)}`);
|
|
17239
17239
|
this.loadGenuineUserMedia({
|
|
17240
17240
|
switchingFacingMode: this.facingMode
|
|
17241
17241
|
});
|
|
@@ -17313,7 +17313,7 @@ var __webpack_exports__ = {};
|
|
|
17313
17313
|
}
|
|
17314
17314
|
isRecording() {
|
|
17315
17315
|
var _this_loop;
|
|
17316
|
-
return (null == (_this_loop = this.loop) ? void 0 : _this_loop.isRunning()) && !this.isPaused() && !this.isNotifying() && this.stream && !this.stream.destroyed;
|
|
17316
|
+
return Boolean((null == (_this_loop = this.loop) ? void 0 : _this_loop.isRunning()) && !this.isPaused() && !this.isNotifying() && this.stream && !this.stream.destroyed);
|
|
17317
17317
|
}
|
|
17318
17318
|
hide() {
|
|
17319
17319
|
if (!this.isHidden()) {
|
|
@@ -17498,7 +17498,7 @@ var __webpack_exports__ = {};
|
|
|
17498
17498
|
}
|
|
17499
17499
|
build(replayParentElement) {
|
|
17500
17500
|
var _this_visuals_getElement;
|
|
17501
|
-
this.options.logger.debug(`Replay: build (replayParentElement="${
|
|
17501
|
+
this.options.logger.debug(`Replay: build (replayParentElement="${util_pretty(replayParentElement)}")`);
|
|
17502
17502
|
this.replayElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(`video.${this.options.selectors.replayClass}`);
|
|
17503
17503
|
if (!this.replayElement) this.buildElement(replayParentElement);
|
|
17504
17504
|
if (!this.replayElement) throw new Error("There is no replayElement to build on");
|
|
@@ -17609,7 +17609,7 @@ var __webpack_exports__ = {};
|
|
|
17609
17609
|
}
|
|
17610
17610
|
getVideoType() {
|
|
17611
17611
|
if (!this.replayElement) return;
|
|
17612
|
-
return
|
|
17612
|
+
return util_getBrowser(this.options).getVideoType(this.replayElement);
|
|
17613
17613
|
}
|
|
17614
17614
|
pause(cb) {
|
|
17615
17615
|
window.setTimeout(()=>{
|
|
@@ -17677,7 +17677,7 @@ var __webpack_exports__ = {};
|
|
|
17677
17677
|
buildChildren() {
|
|
17678
17678
|
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, visualsElement = arguments.length > 1 ? arguments[1] : void 0;
|
|
17679
17679
|
if (!visualsElement) throw new Error("Unable to build children without a visuals element");
|
|
17680
|
-
this.options.logger.debug(`Visuals: buildChildren (playerOnly = ${playerOnly}, visualsElement="${
|
|
17680
|
+
this.options.logger.debug(`Visuals: buildChildren (playerOnly = ${playerOnly}, visualsElement="${util_pretty(visualsElement)}"})`);
|
|
17681
17681
|
this.buildNoScriptTag();
|
|
17682
17682
|
if (!playerOnly) {
|
|
17683
17683
|
this.notifier.build();
|
|
@@ -17707,7 +17707,7 @@ var __webpack_exports__ = {};
|
|
|
17707
17707
|
this.correctDimensions();
|
|
17708
17708
|
});
|
|
17709
17709
|
this.on("ERROR", ()=>{
|
|
17710
|
-
if (
|
|
17710
|
+
if (util_getBrowser(this.options).isMobile()) this.removeDimensions();
|
|
17711
17711
|
});
|
|
17712
17712
|
}
|
|
17713
17713
|
}
|
|
@@ -17736,7 +17736,7 @@ var __webpack_exports__ = {};
|
|
|
17736
17736
|
}
|
|
17737
17737
|
build() {
|
|
17738
17738
|
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, parentElement = arguments.length > 1 ? arguments[1] : void 0;
|
|
17739
|
-
this.options.logger.debug(`Visuals: build (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${
|
|
17739
|
+
this.options.logger.debug(`Visuals: build (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${util_pretty(parentElement)}"` : ""})`);
|
|
17740
17740
|
if (parentElement) this.visualsElement = parentElement.querySelector(`.${this.options.selectors.visualsClass}`);
|
|
17741
17741
|
else this.visualsElement = this.container.querySelector(`.${this.options.selectors.visualsClass}`);
|
|
17742
17742
|
if (!this.visualsElement) if (playerOnly && parentElement) this.visualsElement = parentElement;
|
|
@@ -17798,7 +17798,7 @@ var __webpack_exports__ = {};
|
|
|
17798
17798
|
unload(params) {
|
|
17799
17799
|
if (!this.built) return;
|
|
17800
17800
|
const e = null == params ? void 0 : params.e;
|
|
17801
|
-
this.options.logger.debug(`Visuals: unload(${e ?
|
|
17801
|
+
this.options.logger.debug(`Visuals: unload(${e ? util_pretty(e) : ""})`);
|
|
17802
17802
|
this.recorder.unload(params);
|
|
17803
17803
|
this.recorderInsides.unload();
|
|
17804
17804
|
this.replay.unload(params);
|
|
@@ -17943,19 +17943,19 @@ var __webpack_exports__ = {};
|
|
|
17943
17943
|
}
|
|
17944
17944
|
}
|
|
17945
17945
|
const wrappers_visuals = Visuals;
|
|
17946
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
17946
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
17947
17947
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
17948
|
-
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
17948
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
17949
17949
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
17950
|
-
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
17950
|
+
var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
17951
17951
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
17952
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
17952
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
17953
17953
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
17954
|
-
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
17954
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
17955
17955
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
17956
|
-
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
17956
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
17957
17957
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
17958
|
-
var main = __webpack_require__("
|
|
17958
|
+
var main = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
|
|
17959
17959
|
var main_options = {};
|
|
17960
17960
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
17961
17961
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -17977,13 +17977,13 @@ var __webpack_exports__ = {};
|
|
|
17977
17977
|
class Container extends util_Despot {
|
|
17978
17978
|
buildChildren() {
|
|
17979
17979
|
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, parentElement = arguments.length > 1 ? arguments[1] : void 0;
|
|
17980
|
-
this.options.logger.debug(`Container: buildChildren (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${
|
|
17980
|
+
this.options.logger.debug(`Container: buildChildren (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${util_pretty(parentElement)}"` : ""})`);
|
|
17981
17981
|
if (this.containerElement) this.containerElement.classList.add(this.options.selectors.containerClass);
|
|
17982
17982
|
if (!playerOnly) this.buttons.build();
|
|
17983
17983
|
this.visuals.build(playerOnly, parentElement);
|
|
17984
17984
|
}
|
|
17985
17985
|
build(buildOptions) {
|
|
17986
|
-
this.options.logger.debug(`Container: build (${buildOptions ?
|
|
17986
|
+
this.options.logger.debug(`Container: build (${buildOptions ? util_pretty(buildOptions) : ""})`);
|
|
17987
17987
|
try {
|
|
17988
17988
|
var _this_containerElement;
|
|
17989
17989
|
const containerId = this.options.selectors.containerId;
|
|
@@ -18087,7 +18087,7 @@ var __webpack_exports__ = {};
|
|
|
18087
18087
|
this.on("ERROR", (params)=>{
|
|
18088
18088
|
this.processError(params);
|
|
18089
18089
|
this.endWaiting();
|
|
18090
|
-
const browser =
|
|
18090
|
+
const browser = util_getBrowser(this.options);
|
|
18091
18091
|
if (browser.isMobile()) this.removeDimensions();
|
|
18092
18092
|
});
|
|
18093
18093
|
if (!playerOnly) this.on("LOADED_META_DATA", ()=>{
|
|
@@ -18128,17 +18128,17 @@ var __webpack_exports__ = {};
|
|
|
18128
18128
|
return await this.resource.post(videomailFormData);
|
|
18129
18129
|
}
|
|
18130
18130
|
if (method === form_FormMethod.PUT) return await this.resource.put(videomailFormData);
|
|
18131
|
-
throw
|
|
18131
|
+
throw error_createError({
|
|
18132
18132
|
message: `Unsupported form method ${method}, unable to submit videomail.`,
|
|
18133
18133
|
options: this.options
|
|
18134
18134
|
});
|
|
18135
18135
|
}
|
|
18136
18136
|
limitWidth(width) {
|
|
18137
18137
|
if (!this.containerElement) return;
|
|
18138
|
-
return
|
|
18138
|
+
return dimensions_limitWidth(this.containerElement, this.options, width);
|
|
18139
18139
|
}
|
|
18140
18140
|
limitHeight(height) {
|
|
18141
|
-
return
|
|
18141
|
+
return dimensions_limitHeight(height, this.options, "containers limitHeight fn");
|
|
18142
18142
|
}
|
|
18143
18143
|
areVisualsHidden() {
|
|
18144
18144
|
return this.visuals.isHidden();
|
|
@@ -18173,7 +18173,7 @@ var __webpack_exports__ = {};
|
|
|
18173
18173
|
try {
|
|
18174
18174
|
if (!this.built) return;
|
|
18175
18175
|
const e = null == params ? void 0 : params.e;
|
|
18176
|
-
this.options.logger.debug(`Container: unload(${e ?
|
|
18176
|
+
this.options.logger.debug(`Container: unload(${e ? util_pretty(e) : ""})`);
|
|
18177
18177
|
this.emit("UNLOADING");
|
|
18178
18178
|
this.unloadChildren(params);
|
|
18179
18179
|
this.hide();
|
|
@@ -18187,7 +18187,7 @@ var __webpack_exports__ = {};
|
|
|
18187
18187
|
}
|
|
18188
18188
|
}
|
|
18189
18189
|
show(params) {
|
|
18190
|
-
if (!this.containerElement) throw
|
|
18190
|
+
if (!this.containerElement) throw error_createError({
|
|
18191
18191
|
message: "No container element exists.",
|
|
18192
18192
|
options: this.options
|
|
18193
18193
|
});
|
|
@@ -18376,7 +18376,7 @@ var __webpack_exports__ = {};
|
|
|
18376
18376
|
});
|
|
18377
18377
|
}
|
|
18378
18378
|
} catch (exc) {
|
|
18379
|
-
const err =
|
|
18379
|
+
const err = error_createError({
|
|
18380
18380
|
exc,
|
|
18381
18381
|
options: this.options
|
|
18382
18382
|
});
|
|
@@ -18469,7 +18469,7 @@ var __webpack_exports__ = {};
|
|
|
18469
18469
|
else obj[key] = value;
|
|
18470
18470
|
return obj;
|
|
18471
18471
|
}
|
|
18472
|
-
class
|
|
18472
|
+
class CollectLogger_CollectLogger {
|
|
18473
18473
|
lifo(level, parameters) {
|
|
18474
18474
|
const line = parameters.join();
|
|
18475
18475
|
if (this.stack.length > this.options.logStackSize) this.stack.pop();
|
|
@@ -18508,11 +18508,11 @@ var __webpack_exports__ = {};
|
|
|
18508
18508
|
CollectLogger_define_property(this, "stack", []);
|
|
18509
18509
|
CollectLogger_define_property(this, "options", void 0);
|
|
18510
18510
|
this.options = options;
|
|
18511
|
-
this.browser =
|
|
18511
|
+
this.browser = util_getBrowser(options);
|
|
18512
18512
|
this.logger = options.logger;
|
|
18513
18513
|
}
|
|
18514
18514
|
}
|
|
18515
|
-
const
|
|
18515
|
+
const CollectLogger = CollectLogger_CollectLogger;
|
|
18516
18516
|
var isTest_process = __webpack_require__("./node_modules/process/browser.js");
|
|
18517
18517
|
function isTest() {
|
|
18518
18518
|
return "test" === isTest_process.env.ENVIRON;
|
|
@@ -18525,7 +18525,7 @@ var __webpack_exports__ = {};
|
|
|
18525
18525
|
return source;
|
|
18526
18526
|
}
|
|
18527
18527
|
});
|
|
18528
|
-
const collectLogger = new
|
|
18528
|
+
const collectLogger = new CollectLogger(newOptions);
|
|
18529
18529
|
newOptions.logger = collectLogger;
|
|
18530
18530
|
if (util_isTest()) newOptions.verbose = false;
|
|
18531
18531
|
return newOptions;
|
|
@@ -18544,12 +18544,12 @@ var __webpack_exports__ = {};
|
|
|
18544
18544
|
class VideomailClient extends util_Despot {
|
|
18545
18545
|
validateOptions() {
|
|
18546
18546
|
const width = this.options.video.width;
|
|
18547
|
-
if (void 0 !== width && width % 2 !== 0) throw
|
|
18547
|
+
if (void 0 !== width && width % 2 !== 0) throw error_createError({
|
|
18548
18548
|
message: "Width must be divisible by two.",
|
|
18549
18549
|
options: this.options
|
|
18550
18550
|
});
|
|
18551
18551
|
const height = this.options.video.height;
|
|
18552
|
-
if (void 0 !== height && height % 2 !== 0) throw
|
|
18552
|
+
if (void 0 !== height && height % 2 !== 0) throw error_createError({
|
|
18553
18553
|
message: "Height must be divisible by two.",
|
|
18554
18554
|
options: this.options
|
|
18555
18555
|
});
|