videomail-client 13.6.7 → 13.6.9
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 +44 -30
- package/dist/esm/index.js +50 -79
- package/dist/esm/rslib-runtime.js +52 -0
- package/dist/umd/index.js +44 -30
- package/package.json +15 -15
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var __webpack_modules__ = {
|
|
2
|
-
"./node_modules/@
|
|
2
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl" (module, __webpack_exports__, __webpack_require__) {
|
|
3
3
|
"use strict";
|
|
4
4
|
__webpack_require__.d(__webpack_exports__, {
|
|
5
5
|
A: ()=>__rspack_default_export
|
|
6
6
|
});
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
7
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
8
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
9
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
10
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
11
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
12
12
|
___CSS_LOADER_EXPORT___.push([
|
|
13
13
|
module.id,
|
|
14
14
|
`@keyframes blink {
|
|
@@ -10199,7 +10199,7 @@ var __webpack_modules__ = {
|
|
|
10199
10199
|
"?3f0e" () {},
|
|
10200
10200
|
"?3412" () {},
|
|
10201
10201
|
"?3152" () {},
|
|
10202
|
-
"./node_modules/@
|
|
10202
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js" (module) {
|
|
10203
10203
|
"use strict";
|
|
10204
10204
|
module.exports = function(cssWithMappingToString) {
|
|
10205
10205
|
var list = [];
|
|
@@ -10253,13 +10253,13 @@ var __webpack_modules__ = {
|
|
|
10253
10253
|
return list;
|
|
10254
10254
|
};
|
|
10255
10255
|
},
|
|
10256
|
-
"./node_modules/@
|
|
10256
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module) {
|
|
10257
10257
|
"use strict";
|
|
10258
10258
|
module.exports = function(i) {
|
|
10259
10259
|
return i[1];
|
|
10260
10260
|
};
|
|
10261
10261
|
},
|
|
10262
|
-
"./node_modules/@
|
|
10262
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module) {
|
|
10263
10263
|
"use strict";
|
|
10264
10264
|
var stylesInDOM = [];
|
|
10265
10265
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10338,7 +10338,7 @@ var __webpack_modules__ = {
|
|
|
10338
10338
|
};
|
|
10339
10339
|
};
|
|
10340
10340
|
},
|
|
10341
|
-
"./node_modules/@
|
|
10341
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js" (module) {
|
|
10342
10342
|
"use strict";
|
|
10343
10343
|
var memo = {};
|
|
10344
10344
|
function getTarget(target) {
|
|
@@ -10360,7 +10360,7 @@ var __webpack_modules__ = {
|
|
|
10360
10360
|
}
|
|
10361
10361
|
module.exports = insertBySelector;
|
|
10362
10362
|
},
|
|
10363
|
-
"./node_modules/@
|
|
10363
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js" (module) {
|
|
10364
10364
|
"use strict";
|
|
10365
10365
|
function insertStyleElement(options) {
|
|
10366
10366
|
var element = document.createElement("style");
|
|
@@ -10370,7 +10370,7 @@ var __webpack_modules__ = {
|
|
|
10370
10370
|
}
|
|
10371
10371
|
module.exports = insertStyleElement;
|
|
10372
10372
|
},
|
|
10373
|
-
"./node_modules/@
|
|
10373
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
10374
10374
|
"use strict";
|
|
10375
10375
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10376
10376
|
var nonce = __webpack_require__.nc;
|
|
@@ -10378,7 +10378,7 @@ var __webpack_modules__ = {
|
|
|
10378
10378
|
}
|
|
10379
10379
|
module.exports = setAttributesWithoutAttributes;
|
|
10380
10380
|
},
|
|
10381
|
-
"./node_modules/@
|
|
10381
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js" (module) {
|
|
10382
10382
|
"use strict";
|
|
10383
10383
|
function apply(styleElement, options, obj) {
|
|
10384
10384
|
var css = "";
|
|
@@ -10415,7 +10415,7 @@ var __webpack_modules__ = {
|
|
|
10415
10415
|
}
|
|
10416
10416
|
module.exports = domAPI;
|
|
10417
10417
|
},
|
|
10418
|
-
"./node_modules/@
|
|
10418
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js" (module) {
|
|
10419
10419
|
"use strict";
|
|
10420
10420
|
function styleTagTransform(css, styleElement) {
|
|
10421
10421
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10664,7 +10664,7 @@ var __webpack_exports__ = {};
|
|
|
10664
10664
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10665
10665
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10666
10666
|
var package_namespaceObject = {
|
|
10667
|
-
rE: "13.6.
|
|
10667
|
+
rE: "13.6.9"
|
|
10668
10668
|
};
|
|
10669
10669
|
function isAudioEnabled(options) {
|
|
10670
10670
|
return Boolean(options.audio.enabled);
|
|
@@ -15079,19 +15079,19 @@ var __webpack_exports__ = {};
|
|
|
15079
15079
|
return newOptions;
|
|
15080
15080
|
}
|
|
15081
15081
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
15082
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
15082
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
15083
15083
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
15084
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
15084
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
15085
15085
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
15086
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
15086
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
15087
15087
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
15088
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
15088
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
15089
15089
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
15090
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
15090
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
15091
15091
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
15092
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
15092
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
15093
15093
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
15094
|
-
var main = __webpack_require__("./node_modules/@
|
|
15094
|
+
var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
|
|
15095
15095
|
var main_options = {};
|
|
15096
15096
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
15097
15097
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -16865,9 +16865,14 @@ var __webpack_exports__ = {};
|
|
|
16865
16865
|
if (this.options.video.width || this.options.video.height) {
|
|
16866
16866
|
const heightDimension = this.recorder.calculateHeight(responsive);
|
|
16867
16867
|
rawHeight = heightDimension.value;
|
|
16868
|
-
if (
|
|
16869
|
-
message: "
|
|
16870
|
-
explanation: "Calculated raw height cannot be
|
|
16868
|
+
if (void 0 === rawHeight) throw error_createError({
|
|
16869
|
+
message: "Undefined height",
|
|
16870
|
+
explanation: "Calculated raw height cannot be undefined.",
|
|
16871
|
+
options: this.options
|
|
16872
|
+
});
|
|
16873
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16874
|
+
message: "Invalid height",
|
|
16875
|
+
explanation: `Calculated raw height of ${rawHeight} cannot be less than 1!`,
|
|
16871
16876
|
options: this.options
|
|
16872
16877
|
});
|
|
16873
16878
|
} else {
|
|
@@ -16877,7 +16882,7 @@ var __webpack_exports__ = {};
|
|
|
16877
16882
|
explanation: "Raw video height from DOM element cannot be undefined.",
|
|
16878
16883
|
options: this.options
|
|
16879
16884
|
});
|
|
16880
|
-
if (rawHeight < 1) throw error_createError({
|
|
16885
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16881
16886
|
message: "Bad dimensions",
|
|
16882
16887
|
explanation: "Raw video height from DOM element cannot be less than 1.",
|
|
16883
16888
|
options: this.options
|
|
@@ -17104,9 +17109,9 @@ var __webpack_exports__ = {};
|
|
|
17104
17109
|
initSocket(cb) {
|
|
17105
17110
|
if (!this.connected) {
|
|
17106
17111
|
this.connecting = true;
|
|
17107
|
-
this.options.logger.debug(`Recorder: initializing web socket to ${this.options.socketUrl}`);
|
|
17108
17112
|
this.emit("CONNECTING");
|
|
17109
17113
|
const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.SITE_NAME_LABEL)}=${encodeURIComponent(this.options.siteName)}`;
|
|
17114
|
+
this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
|
|
17110
17115
|
try {
|
|
17111
17116
|
this.stream = stream_default()(url2Connect, {
|
|
17112
17117
|
perMessageDeflate: false,
|
|
@@ -17833,7 +17838,14 @@ var __webpack_exports__ = {};
|
|
|
17833
17838
|
value: height
|
|
17834
17839
|
};
|
|
17835
17840
|
} else if (this.userMedia) {
|
|
17836
|
-
|
|
17841
|
+
let height = this.userMedia.getRawHeight(responsive);
|
|
17842
|
+
if (void 0 !== height && this.options.video.width) {
|
|
17843
|
+
const ratio = this.getRatio();
|
|
17844
|
+
if (void 0 !== ratio) {
|
|
17845
|
+
const maxHeight = this.options.video.width * ratio;
|
|
17846
|
+
height = Math.min(maxHeight, height);
|
|
17847
|
+
}
|
|
17848
|
+
}
|
|
17837
17849
|
recorderHeight = {
|
|
17838
17850
|
unit: "px",
|
|
17839
17851
|
value: height
|
|
@@ -18240,8 +18252,10 @@ var __webpack_exports__ = {};
|
|
|
18240
18252
|
}
|
|
18241
18253
|
if (null == widthDimension ? void 0 : widthDimension.value) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
18242
18254
|
else this.visualsElement.style.removeProperty("width");
|
|
18243
|
-
if (null == heightDimension ? void 0 : heightDimension.value)
|
|
18244
|
-
|
|
18255
|
+
if (null == heightDimension ? void 0 : heightDimension.value) {
|
|
18256
|
+
const height = `${heightDimension.value}${heightDimension.unit}`;
|
|
18257
|
+
this.visualsElement.style.height = height;
|
|
18258
|
+
} else this.visualsElement.style.removeProperty("height");
|
|
18245
18259
|
}
|
|
18246
18260
|
}
|
|
18247
18261
|
removeDimensions() {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
1
2
|
import { deserializeError, serializeError } from "serialize-error";
|
|
2
3
|
import superagent from "superagent";
|
|
3
4
|
import defined from "defined";
|
|
@@ -12,16 +13,16 @@ import canvas_to_buffer from "canvas-to-buffer";
|
|
|
12
13
|
import websocket_stream from "websocket-stream";
|
|
13
14
|
import audio_sample from "audio-sample";
|
|
14
15
|
import is_power_of_two from "is-power-of-two";
|
|
15
|
-
|
|
16
|
-
"./node_modules/@
|
|
16
|
+
__webpack_require__.add({
|
|
17
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl" (module, __webpack_exports__, __webpack_require__) {
|
|
17
18
|
__webpack_require__.d(__webpack_exports__, {
|
|
18
19
|
A: ()=>__rspack_default_export
|
|
19
20
|
});
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
21
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
22
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
23
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
24
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
25
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
25
26
|
___CSS_LOADER_EXPORT___.push([
|
|
26
27
|
module.id,
|
|
27
28
|
`@keyframes blink {
|
|
@@ -3320,7 +3321,7 @@ var __webpack_modules__ = {
|
|
|
3320
3321
|
return tryTypedArrays(value);
|
|
3321
3322
|
};
|
|
3322
3323
|
},
|
|
3323
|
-
"./node_modules/@
|
|
3324
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js" (module) {
|
|
3324
3325
|
module.exports = function(cssWithMappingToString) {
|
|
3325
3326
|
var list = [];
|
|
3326
3327
|
list.toString = function() {
|
|
@@ -3373,12 +3374,12 @@ var __webpack_modules__ = {
|
|
|
3373
3374
|
return list;
|
|
3374
3375
|
};
|
|
3375
3376
|
},
|
|
3376
|
-
"./node_modules/@
|
|
3377
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module) {
|
|
3377
3378
|
module.exports = function(i) {
|
|
3378
3379
|
return i[1];
|
|
3379
3380
|
};
|
|
3380
3381
|
},
|
|
3381
|
-
"./node_modules/@
|
|
3382
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module) {
|
|
3382
3383
|
var stylesInDOM = [];
|
|
3383
3384
|
function getIndexByIdentifier(identifier) {
|
|
3384
3385
|
var result = -1;
|
|
@@ -3456,7 +3457,7 @@ var __webpack_modules__ = {
|
|
|
3456
3457
|
};
|
|
3457
3458
|
};
|
|
3458
3459
|
},
|
|
3459
|
-
"./node_modules/@
|
|
3460
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js" (module) {
|
|
3460
3461
|
var memo = {};
|
|
3461
3462
|
function getTarget(target) {
|
|
3462
3463
|
if (void 0 === memo[target]) {
|
|
@@ -3477,7 +3478,7 @@ var __webpack_modules__ = {
|
|
|
3477
3478
|
}
|
|
3478
3479
|
module.exports = insertBySelector;
|
|
3479
3480
|
},
|
|
3480
|
-
"./node_modules/@
|
|
3481
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js" (module) {
|
|
3481
3482
|
function insertStyleElement(options) {
|
|
3482
3483
|
var element = document.createElement("style");
|
|
3483
3484
|
options.setAttributes(element, options.attributes);
|
|
@@ -3486,14 +3487,14 @@ var __webpack_modules__ = {
|
|
|
3486
3487
|
}
|
|
3487
3488
|
module.exports = insertStyleElement;
|
|
3488
3489
|
},
|
|
3489
|
-
"./node_modules/@
|
|
3490
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
3490
3491
|
function setAttributesWithoutAttributes(styleElement) {
|
|
3491
3492
|
var nonce = __webpack_require__.nc;
|
|
3492
3493
|
if (nonce) styleElement.setAttribute("nonce", nonce);
|
|
3493
3494
|
}
|
|
3494
3495
|
module.exports = setAttributesWithoutAttributes;
|
|
3495
3496
|
},
|
|
3496
|
-
"./node_modules/@
|
|
3497
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js" (module) {
|
|
3497
3498
|
function apply(styleElement, options, obj) {
|
|
3498
3499
|
var css = "";
|
|
3499
3500
|
if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
|
|
@@ -3529,7 +3530,7 @@ var __webpack_modules__ = {
|
|
|
3529
3530
|
}
|
|
3530
3531
|
module.exports = domAPI;
|
|
3531
3532
|
},
|
|
3532
|
-
"./node_modules/@
|
|
3533
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js" (module) {
|
|
3533
3534
|
function styleTagTransform(css, styleElement) {
|
|
3534
3535
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
3535
3536
|
else {
|
|
@@ -3548,51 +3549,7 @@ var __webpack_modules__ = {
|
|
|
3548
3549
|
return out;
|
|
3549
3550
|
};
|
|
3550
3551
|
}
|
|
3551
|
-
};
|
|
3552
|
-
var __webpack_module_cache__ = {};
|
|
3553
|
-
function __webpack_require__(moduleId) {
|
|
3554
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
3555
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
3556
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
3557
|
-
id: moduleId,
|
|
3558
|
-
exports: {}
|
|
3559
|
-
};
|
|
3560
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
3561
|
-
return module.exports;
|
|
3562
|
-
}
|
|
3563
|
-
(()=>{
|
|
3564
|
-
__webpack_require__.n = (module)=>{
|
|
3565
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
3566
|
-
__webpack_require__.d(getter, {
|
|
3567
|
-
a: getter
|
|
3568
|
-
});
|
|
3569
|
-
return getter;
|
|
3570
|
-
};
|
|
3571
|
-
})();
|
|
3572
|
-
(()=>{
|
|
3573
|
-
__webpack_require__.d = (exports, definition)=>{
|
|
3574
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
3575
|
-
enumerable: true,
|
|
3576
|
-
get: definition[key]
|
|
3577
|
-
});
|
|
3578
|
-
};
|
|
3579
|
-
})();
|
|
3580
|
-
(()=>{
|
|
3581
|
-
__webpack_require__.g = (()=>{
|
|
3582
|
-
if ('object' == typeof globalThis) return globalThis;
|
|
3583
|
-
try {
|
|
3584
|
-
return this || new Function('return this')();
|
|
3585
|
-
} catch (e) {
|
|
3586
|
-
if ('object' == typeof window) return window;
|
|
3587
|
-
}
|
|
3588
|
-
})();
|
|
3589
|
-
})();
|
|
3590
|
-
(()=>{
|
|
3591
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3592
|
-
})();
|
|
3593
|
-
(()=>{
|
|
3594
|
-
__webpack_require__.nc = void 0;
|
|
3595
|
-
})();
|
|
3552
|
+
});
|
|
3596
3553
|
const VideoType = {
|
|
3597
3554
|
WebM: "webm",
|
|
3598
3555
|
MP4: "mp4"
|
|
@@ -3606,7 +3563,7 @@ const constants = {
|
|
|
3606
3563
|
}
|
|
3607
3564
|
};
|
|
3608
3565
|
var package_namespaceObject = {
|
|
3609
|
-
rE: "13.6.
|
|
3566
|
+
rE: "13.6.9"
|
|
3610
3567
|
};
|
|
3611
3568
|
function isAudioEnabled(options) {
|
|
3612
3569
|
return Boolean(options.audio.enabled);
|
|
@@ -3618,7 +3575,7 @@ function setAudioEnabled(enabled, options) {
|
|
|
3618
3575
|
function isAutoPauseEnabled(options) {
|
|
3619
3576
|
return options.enableAutoPause && options.enablePause;
|
|
3620
3577
|
}
|
|
3621
|
-
|
|
3578
|
+
const util = __webpack_require__("./node_modules/util/util.js");
|
|
3622
3579
|
var util_default = /*#__PURE__*/ __webpack_require__.n(util);
|
|
3623
3580
|
function inspect(element) {
|
|
3624
3581
|
return util_default().inspect(element, {
|
|
@@ -4613,27 +4570,27 @@ function mergeWithDefaultOptions(options = {}) {
|
|
|
4613
4570
|
return newOptions;
|
|
4614
4571
|
}
|
|
4615
4572
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
4616
|
-
|
|
4573
|
+
const injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
4617
4574
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
4618
|
-
|
|
4575
|
+
const styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
4619
4576
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
4620
|
-
|
|
4577
|
+
const insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
4621
4578
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
4622
|
-
|
|
4579
|
+
const setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
4623
4580
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
4624
|
-
|
|
4581
|
+
const insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
4625
4582
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
4626
|
-
|
|
4583
|
+
const styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
4627
4584
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
4628
|
-
|
|
4585
|
+
const main_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
|
|
4629
4586
|
var main_options = {};
|
|
4630
4587
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
4631
4588
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
4632
4589
|
main_options.insert = insertBySelector_default().bind(null, "head");
|
|
4633
4590
|
main_options.domAPI = styleDomAPI_default();
|
|
4634
4591
|
main_options.insertStyleElement = insertStyleElement_default();
|
|
4635
|
-
injectStylesIntoStyleTag_default()(
|
|
4636
|
-
|
|
4592
|
+
injectStylesIntoStyleTag_default()(main_0.A, main_options);
|
|
4593
|
+
main_0.A && main_0.A.locals && main_0.A.locals;
|
|
4637
4594
|
function limitHeight(height, options, calledFrom) {
|
|
4638
4595
|
const dimension = {
|
|
4639
4596
|
unit: "px"
|
|
@@ -6202,9 +6159,14 @@ class UserMedia extends util_Despot {
|
|
|
6202
6159
|
if (this.options.video.width || this.options.video.height) {
|
|
6203
6160
|
const heightDimension = this.recorder.calculateHeight(responsive);
|
|
6204
6161
|
rawHeight = heightDimension.value;
|
|
6205
|
-
if (
|
|
6206
|
-
message: "
|
|
6207
|
-
explanation: "Calculated raw height cannot be
|
|
6162
|
+
if (void 0 === rawHeight) throw error_createError({
|
|
6163
|
+
message: "Undefined height",
|
|
6164
|
+
explanation: "Calculated raw height cannot be undefined.",
|
|
6165
|
+
options: this.options
|
|
6166
|
+
});
|
|
6167
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
6168
|
+
message: "Invalid height",
|
|
6169
|
+
explanation: `Calculated raw height of ${rawHeight} cannot be less than 1!`,
|
|
6208
6170
|
options: this.options
|
|
6209
6171
|
});
|
|
6210
6172
|
} else {
|
|
@@ -6214,7 +6176,7 @@ class UserMedia extends util_Despot {
|
|
|
6214
6176
|
explanation: "Raw video height from DOM element cannot be undefined.",
|
|
6215
6177
|
options: this.options
|
|
6216
6178
|
});
|
|
6217
|
-
if (rawHeight < 1) throw error_createError({
|
|
6179
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
6218
6180
|
message: "Bad dimensions",
|
|
6219
6181
|
explanation: "Raw video height from DOM element cannot be less than 1.",
|
|
6220
6182
|
options: this.options
|
|
@@ -6459,9 +6421,9 @@ class Recorder extends util_Despot {
|
|
|
6459
6421
|
initSocket(cb) {
|
|
6460
6422
|
if (!this.connected) {
|
|
6461
6423
|
this.connecting = true;
|
|
6462
|
-
this.options.logger.debug(`Recorder: initializing web socket to ${this.options.socketUrl}`);
|
|
6463
6424
|
this.emit("CONNECTING");
|
|
6464
6425
|
const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.SITE_NAME_LABEL)}=${encodeURIComponent(this.options.siteName)}`;
|
|
6426
|
+
this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
|
|
6465
6427
|
try {
|
|
6466
6428
|
this.stream = websocket_stream(url2Connect, {
|
|
6467
6429
|
perMessageDeflate: false,
|
|
@@ -7172,7 +7134,14 @@ class Recorder extends util_Despot {
|
|
|
7172
7134
|
value: height
|
|
7173
7135
|
};
|
|
7174
7136
|
} else if (this.userMedia) {
|
|
7175
|
-
|
|
7137
|
+
let height = this.userMedia.getRawHeight(responsive);
|
|
7138
|
+
if (void 0 !== height && this.options.video.width) {
|
|
7139
|
+
const ratio = this.getRatio();
|
|
7140
|
+
if (void 0 !== ratio) {
|
|
7141
|
+
const maxHeight = this.options.video.width * ratio;
|
|
7142
|
+
height = Math.min(maxHeight, height);
|
|
7143
|
+
}
|
|
7144
|
+
}
|
|
7176
7145
|
recorderHeight = {
|
|
7177
7146
|
unit: "px",
|
|
7178
7147
|
value: height
|
|
@@ -7552,8 +7521,10 @@ class Visuals extends util_Despot {
|
|
|
7552
7521
|
}
|
|
7553
7522
|
if (widthDimension?.value) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
7554
7523
|
else this.visualsElement.style.removeProperty("width");
|
|
7555
|
-
if (heightDimension?.value)
|
|
7556
|
-
|
|
7524
|
+
if (heightDimension?.value) {
|
|
7525
|
+
const height = `${heightDimension.value}${heightDimension.unit}`;
|
|
7526
|
+
this.visualsElement.style.height = height;
|
|
7527
|
+
} else this.visualsElement.style.removeProperty("height");
|
|
7557
7528
|
}
|
|
7558
7529
|
}
|
|
7559
7530
|
removeDimensions() {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __webpack_modules__ = {};
|
|
2
|
+
var __webpack_module_cache__ = {};
|
|
3
|
+
function __webpack_require__(moduleId) {
|
|
4
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
5
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
6
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
7
|
+
id: moduleId,
|
|
8
|
+
exports: {}
|
|
9
|
+
};
|
|
10
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
11
|
+
return module.exports;
|
|
12
|
+
}
|
|
13
|
+
__webpack_require__.m = __webpack_modules__;
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.add = function(modules) {
|
|
16
|
+
Object.assign(__webpack_require__.m, modules);
|
|
17
|
+
};
|
|
18
|
+
})();
|
|
19
|
+
(()=>{
|
|
20
|
+
__webpack_require__.n = (module)=>{
|
|
21
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
22
|
+
__webpack_require__.d(getter, {
|
|
23
|
+
a: getter
|
|
24
|
+
});
|
|
25
|
+
return getter;
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
(()=>{
|
|
29
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
30
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: definition[key]
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
(()=>{
|
|
37
|
+
__webpack_require__.g = (()=>{
|
|
38
|
+
if ('object' == typeof globalThis) return globalThis;
|
|
39
|
+
try {
|
|
40
|
+
return this || new Function('return this')();
|
|
41
|
+
} catch (e) {
|
|
42
|
+
if ('object' == typeof window) return window;
|
|
43
|
+
}
|
|
44
|
+
})();
|
|
45
|
+
})();
|
|
46
|
+
(()=>{
|
|
47
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
48
|
+
})();
|
|
49
|
+
(()=>{
|
|
50
|
+
__webpack_require__.nc = void 0;
|
|
51
|
+
})();
|
|
52
|
+
export { __webpack_require__ };
|
package/dist/umd/index.js
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
else root["VideomailClient"] = factory();
|
|
6
6
|
})(globalThis, ()=>(()=>{
|
|
7
7
|
var __webpack_modules__ = {
|
|
8
|
-
"./node_modules/@
|
|
8
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl" (module1, __webpack_exports__, __webpack_require__) {
|
|
9
9
|
"use strict";
|
|
10
10
|
__webpack_require__.d(__webpack_exports__, {
|
|
11
11
|
A: ()=>__rspack_default_export
|
|
12
12
|
});
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
13
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
14
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
15
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
16
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
17
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
18
18
|
___CSS_LOADER_EXPORT___.push([
|
|
19
19
|
module1.id,
|
|
20
20
|
`@keyframes blink {
|
|
@@ -10205,7 +10205,7 @@
|
|
|
10205
10205
|
"?3f0e" () {},
|
|
10206
10206
|
"?3412" () {},
|
|
10207
10207
|
"?3152" () {},
|
|
10208
|
-
"./node_modules/@
|
|
10208
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js" (module1) {
|
|
10209
10209
|
"use strict";
|
|
10210
10210
|
module1.exports = function(cssWithMappingToString) {
|
|
10211
10211
|
var list = [];
|
|
@@ -10259,13 +10259,13 @@
|
|
|
10259
10259
|
return list;
|
|
10260
10260
|
};
|
|
10261
10261
|
},
|
|
10262
|
-
"./node_modules/@
|
|
10262
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module1) {
|
|
10263
10263
|
"use strict";
|
|
10264
10264
|
module1.exports = function(i) {
|
|
10265
10265
|
return i[1];
|
|
10266
10266
|
};
|
|
10267
10267
|
},
|
|
10268
|
-
"./node_modules/@
|
|
10268
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module1) {
|
|
10269
10269
|
"use strict";
|
|
10270
10270
|
var stylesInDOM = [];
|
|
10271
10271
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10344,7 +10344,7 @@
|
|
|
10344
10344
|
};
|
|
10345
10345
|
};
|
|
10346
10346
|
},
|
|
10347
|
-
"./node_modules/@
|
|
10347
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js" (module1) {
|
|
10348
10348
|
"use strict";
|
|
10349
10349
|
var memo = {};
|
|
10350
10350
|
function getTarget(target) {
|
|
@@ -10366,7 +10366,7 @@
|
|
|
10366
10366
|
}
|
|
10367
10367
|
module1.exports = insertBySelector;
|
|
10368
10368
|
},
|
|
10369
|
-
"./node_modules/@
|
|
10369
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js" (module1) {
|
|
10370
10370
|
"use strict";
|
|
10371
10371
|
function insertStyleElement(options) {
|
|
10372
10372
|
var element = document.createElement("style");
|
|
@@ -10376,7 +10376,7 @@
|
|
|
10376
10376
|
}
|
|
10377
10377
|
module1.exports = insertStyleElement;
|
|
10378
10378
|
},
|
|
10379
|
-
"./node_modules/@
|
|
10379
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
10380
10380
|
"use strict";
|
|
10381
10381
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10382
10382
|
var nonce = __webpack_require__.nc;
|
|
@@ -10384,7 +10384,7 @@
|
|
|
10384
10384
|
}
|
|
10385
10385
|
module1.exports = setAttributesWithoutAttributes;
|
|
10386
10386
|
},
|
|
10387
|
-
"./node_modules/@
|
|
10387
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js" (module1) {
|
|
10388
10388
|
"use strict";
|
|
10389
10389
|
function apply(styleElement, options, obj) {
|
|
10390
10390
|
var css = "";
|
|
@@ -10421,7 +10421,7 @@
|
|
|
10421
10421
|
}
|
|
10422
10422
|
module1.exports = domAPI;
|
|
10423
10423
|
},
|
|
10424
|
-
"./node_modules/@
|
|
10424
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js" (module1) {
|
|
10425
10425
|
"use strict";
|
|
10426
10426
|
function styleTagTransform(css, styleElement) {
|
|
10427
10427
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10670,7 +10670,7 @@
|
|
|
10670
10670
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10671
10671
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10672
10672
|
var package_namespaceObject = {
|
|
10673
|
-
rE: "13.6.
|
|
10673
|
+
rE: "13.6.9"
|
|
10674
10674
|
};
|
|
10675
10675
|
function isAudioEnabled(options) {
|
|
10676
10676
|
return Boolean(options.audio.enabled);
|
|
@@ -14945,19 +14945,19 @@
|
|
|
14945
14945
|
return newOptions;
|
|
14946
14946
|
}
|
|
14947
14947
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
14948
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
14948
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
14949
14949
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
14950
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
14950
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
14951
14951
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
14952
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
14952
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
14953
14953
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
14954
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
14954
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
14955
14955
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
14956
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
14956
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
14957
14957
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
14958
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
14958
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
14959
14959
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
14960
|
-
var main = __webpack_require__("./node_modules/@
|
|
14960
|
+
var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
|
|
14961
14961
|
var main_options = {};
|
|
14962
14962
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
14963
14963
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -16614,9 +16614,14 @@
|
|
|
16614
16614
|
if (this.options.video.width || this.options.video.height) {
|
|
16615
16615
|
const heightDimension = this.recorder.calculateHeight(responsive);
|
|
16616
16616
|
rawHeight = heightDimension.value;
|
|
16617
|
-
if (
|
|
16618
|
-
message: "
|
|
16619
|
-
explanation: "Calculated raw height cannot be
|
|
16617
|
+
if (void 0 === rawHeight) throw error_createError({
|
|
16618
|
+
message: "Undefined height",
|
|
16619
|
+
explanation: "Calculated raw height cannot be undefined.",
|
|
16620
|
+
options: this.options
|
|
16621
|
+
});
|
|
16622
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16623
|
+
message: "Invalid height",
|
|
16624
|
+
explanation: `Calculated raw height of ${rawHeight} cannot be less than 1!`,
|
|
16620
16625
|
options: this.options
|
|
16621
16626
|
});
|
|
16622
16627
|
} else {
|
|
@@ -16626,7 +16631,7 @@
|
|
|
16626
16631
|
explanation: "Raw video height from DOM element cannot be undefined.",
|
|
16627
16632
|
options: this.options
|
|
16628
16633
|
});
|
|
16629
|
-
if (rawHeight < 1) throw error_createError({
|
|
16634
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16630
16635
|
message: "Bad dimensions",
|
|
16631
16636
|
explanation: "Raw video height from DOM element cannot be less than 1.",
|
|
16632
16637
|
options: this.options
|
|
@@ -16871,9 +16876,9 @@
|
|
|
16871
16876
|
initSocket(cb) {
|
|
16872
16877
|
if (!this.connected) {
|
|
16873
16878
|
this.connecting = true;
|
|
16874
|
-
this.options.logger.debug(`Recorder: initializing web socket to ${this.options.socketUrl}`);
|
|
16875
16879
|
this.emit("CONNECTING");
|
|
16876
16880
|
const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.SITE_NAME_LABEL)}=${encodeURIComponent(this.options.siteName)}`;
|
|
16881
|
+
this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
|
|
16877
16882
|
try {
|
|
16878
16883
|
this.stream = stream_default()(url2Connect, {
|
|
16879
16884
|
perMessageDeflate: false,
|
|
@@ -17584,7 +17589,14 @@
|
|
|
17584
17589
|
value: height
|
|
17585
17590
|
};
|
|
17586
17591
|
} else if (this.userMedia) {
|
|
17587
|
-
|
|
17592
|
+
let height = this.userMedia.getRawHeight(responsive);
|
|
17593
|
+
if (void 0 !== height && this.options.video.width) {
|
|
17594
|
+
const ratio = this.getRatio();
|
|
17595
|
+
if (void 0 !== ratio) {
|
|
17596
|
+
const maxHeight = this.options.video.width * ratio;
|
|
17597
|
+
height = Math.min(maxHeight, height);
|
|
17598
|
+
}
|
|
17599
|
+
}
|
|
17588
17600
|
recorderHeight = {
|
|
17589
17601
|
unit: "px",
|
|
17590
17602
|
value: height
|
|
@@ -17964,8 +17976,10 @@
|
|
|
17964
17976
|
}
|
|
17965
17977
|
if (widthDimension?.value) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
17966
17978
|
else this.visualsElement.style.removeProperty("width");
|
|
17967
|
-
if (heightDimension?.value)
|
|
17968
|
-
|
|
17979
|
+
if (heightDimension?.value) {
|
|
17980
|
+
const height = `${heightDimension.value}${heightDimension.unit}`;
|
|
17981
|
+
this.visualsElement.style.height = height;
|
|
17982
|
+
} else this.visualsElement.style.removeProperty("height");
|
|
17969
17983
|
}
|
|
17970
17984
|
}
|
|
17971
17985
|
removeDimensions() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.9",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -80,18 +80,18 @@
|
|
|
80
80
|
"@rsbuild/plugin-node-polyfill": "1.4.2",
|
|
81
81
|
"@rsbuild/plugin-stylus": "1.2.0",
|
|
82
82
|
"@rsdoctor/rspack-plugin": "1.4.0",
|
|
83
|
-
"@rslib/core": "0.
|
|
84
|
-
"@storybook/addon-a11y": "10.1.
|
|
85
|
-
"@storybook/addon-docs": "10.1.
|
|
86
|
-
"@storybook/addon-links": "10.1.
|
|
87
|
-
"@storybook/html": "10.1.
|
|
83
|
+
"@rslib/core": "0.19.1",
|
|
84
|
+
"@storybook/addon-a11y": "10.1.11",
|
|
85
|
+
"@storybook/addon-docs": "10.1.11",
|
|
86
|
+
"@storybook/addon-links": "10.1.11",
|
|
87
|
+
"@storybook/html": "10.1.11",
|
|
88
88
|
"@tsconfig/node22": "22.0.5",
|
|
89
89
|
"@tsconfig/strictest": "2.0.8",
|
|
90
90
|
"@types/defined": "1.0.2",
|
|
91
91
|
"@types/node": "24.10.1",
|
|
92
92
|
"@types/superagent": "8.1.9",
|
|
93
93
|
"@types/ua-parser-js": "0.7.39",
|
|
94
|
-
"@vitest/eslint-plugin": "1.6.
|
|
94
|
+
"@vitest/eslint-plugin": "1.6.5",
|
|
95
95
|
"audit-ci": "7.1.0",
|
|
96
96
|
"chromatic": "13.3.4",
|
|
97
97
|
"cross-env": "10.1.0",
|
|
@@ -100,26 +100,26 @@
|
|
|
100
100
|
"eslint-plugin-de-morgan": "2.0.0",
|
|
101
101
|
"eslint-plugin-depend": "1.4.0",
|
|
102
102
|
"eslint-plugin-import-x": "4.16.1",
|
|
103
|
-
"eslint-plugin-package-json": "0.
|
|
103
|
+
"eslint-plugin-package-json": "0.88.0",
|
|
104
104
|
"eslint-plugin-promise": "7.2.1",
|
|
105
105
|
"eslint-plugin-regexp": "2.10.0",
|
|
106
106
|
"eslint-plugin-security": "3.0.1",
|
|
107
107
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
108
|
-
"eslint-plugin-storybook": "10.1.
|
|
109
|
-
"globals": "
|
|
110
|
-
"jsdom": "27.
|
|
111
|
-
"msw": "2.12.
|
|
108
|
+
"eslint-plugin-storybook": "10.1.11",
|
|
109
|
+
"globals": "17.0.0",
|
|
110
|
+
"jsdom": "27.4.0",
|
|
111
|
+
"msw": "2.12.7",
|
|
112
112
|
"msw-storybook-addon": "2.0.6",
|
|
113
113
|
"prettier": "3.7.4",
|
|
114
114
|
"prettier-plugin-curly": "0.4.1",
|
|
115
115
|
"prettier-plugin-packagejson": "2.5.20",
|
|
116
116
|
"prettier-plugin-sh": "0.18.0",
|
|
117
|
-
"release-it": "19.2.
|
|
118
|
-
"storybook": "10.1.
|
|
117
|
+
"release-it": "19.2.2",
|
|
118
|
+
"storybook": "10.1.11",
|
|
119
119
|
"storybook-html-rsbuild": "3.2.0",
|
|
120
120
|
"type-fest": "5.3.1",
|
|
121
121
|
"typescript": "5.9.3",
|
|
122
|
-
"typescript-eslint": "8.
|
|
122
|
+
"typescript-eslint": "8.51.0",
|
|
123
123
|
"vitest": "4.0.16"
|
|
124
124
|
},
|
|
125
125
|
"engines": {
|