videomail-client 13.6.8 → 13.6.10
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 +39 -29
- package/dist/esm/index.js +45 -78
- package/dist/esm/rslib-runtime.js +52 -0
- package/dist/esm/types/options.d.ts +1 -0
- package/dist/umd/index.js +39 -29
- package/package.json +13 -13
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.10"
|
|
10668
10668
|
};
|
|
10669
10669
|
function isAudioEnabled(options) {
|
|
10670
10670
|
return Boolean(options.audio.enabled);
|
|
@@ -15007,6 +15007,7 @@ var __webpack_exports__ = {};
|
|
|
15007
15007
|
reportErrors: true,
|
|
15008
15008
|
disableFormWhenSubmitting: true,
|
|
15009
15009
|
fakeUaString: void 0,
|
|
15010
|
+
recalculateDimensionsOnWindowResize: false,
|
|
15010
15011
|
versions: {
|
|
15011
15012
|
videomailNinjaFormPlugin: void 0
|
|
15012
15013
|
}
|
|
@@ -15079,19 +15080,19 @@ var __webpack_exports__ = {};
|
|
|
15079
15080
|
return newOptions;
|
|
15080
15081
|
}
|
|
15081
15082
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
15082
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
15083
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
15083
15084
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
15084
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
15085
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
15085
15086
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
15086
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
15087
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
15087
15088
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
15088
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
15089
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
15089
15090
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
15090
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
15091
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
15091
15092
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
15092
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
15093
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
15093
15094
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
15094
|
-
var main = __webpack_require__("./node_modules/@
|
|
15095
|
+
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
15096
|
var main_options = {};
|
|
15096
15097
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
15097
15098
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -16870,9 +16871,9 @@ var __webpack_exports__ = {};
|
|
|
16870
16871
|
explanation: "Calculated raw height cannot be undefined.",
|
|
16871
16872
|
options: this.options
|
|
16872
16873
|
});
|
|
16873
|
-
if (rawHeight < 1) throw error_createError({
|
|
16874
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16874
16875
|
message: "Invalid height",
|
|
16875
|
-
explanation:
|
|
16876
|
+
explanation: `Calculated raw height of ${rawHeight} cannot be less than 1!`,
|
|
16876
16877
|
options: this.options
|
|
16877
16878
|
});
|
|
16878
16879
|
} else {
|
|
@@ -16882,7 +16883,7 @@ var __webpack_exports__ = {};
|
|
|
16882
16883
|
explanation: "Raw video height from DOM element cannot be undefined.",
|
|
16883
16884
|
options: this.options
|
|
16884
16885
|
});
|
|
16885
|
-
if (rawHeight < 1) throw error_createError({
|
|
16886
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16886
16887
|
message: "Bad dimensions",
|
|
16887
16888
|
explanation: "Raw video height from DOM element cannot be less than 1.",
|
|
16888
16889
|
options: this.options
|
|
@@ -17838,7 +17839,14 @@ var __webpack_exports__ = {};
|
|
|
17838
17839
|
value: height
|
|
17839
17840
|
};
|
|
17840
17841
|
} else if (this.userMedia) {
|
|
17841
|
-
|
|
17842
|
+
let height = this.userMedia.getRawHeight(responsive);
|
|
17843
|
+
if (void 0 !== height && this.options.video.width) {
|
|
17844
|
+
const ratio = this.getRatio();
|
|
17845
|
+
if (void 0 !== ratio) {
|
|
17846
|
+
const maxHeight = this.options.video.width * ratio;
|
|
17847
|
+
height = Math.min(maxHeight, height);
|
|
17848
|
+
}
|
|
17849
|
+
}
|
|
17842
17850
|
recorderHeight = {
|
|
17843
17851
|
unit: "px",
|
|
17844
17852
|
value: height
|
|
@@ -18245,8 +18253,10 @@ var __webpack_exports__ = {};
|
|
|
18245
18253
|
}
|
|
18246
18254
|
if (null == widthDimension ? void 0 : widthDimension.value) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
18247
18255
|
else this.visualsElement.style.removeProperty("width");
|
|
18248
|
-
if (null == heightDimension ? void 0 : heightDimension.value)
|
|
18249
|
-
|
|
18256
|
+
if (null == heightDimension ? void 0 : heightDimension.value) {
|
|
18257
|
+
const height = `${heightDimension.value}${heightDimension.unit}`;
|
|
18258
|
+
this.visualsElement.style.height = height;
|
|
18259
|
+
} else this.visualsElement.style.removeProperty("height");
|
|
18250
18260
|
}
|
|
18251
18261
|
}
|
|
18252
18262
|
removeDimensions() {
|
|
@@ -18591,7 +18601,7 @@ var __webpack_exports__ = {};
|
|
|
18591
18601
|
}
|
|
18592
18602
|
initEvents(playerOnly = false) {
|
|
18593
18603
|
this.options.logger.debug(`Container: initEvents (playerOnly = ${playerOnly})`);
|
|
18594
|
-
window.addEventListener("resize", ()=>{
|
|
18604
|
+
if (this.options.recalculateDimensionsOnWindowResize) window.addEventListener("resize", ()=>{
|
|
18595
18605
|
if (!this.built) return;
|
|
18596
18606
|
this.emit("WINDOW_RESIZE", "container");
|
|
18597
18607
|
});
|
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.10"
|
|
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, {
|
|
@@ -4551,6 +4508,7 @@ const options_options = {
|
|
|
4551
4508
|
reportErrors: true,
|
|
4552
4509
|
disableFormWhenSubmitting: true,
|
|
4553
4510
|
fakeUaString: void 0,
|
|
4511
|
+
recalculateDimensionsOnWindowResize: false,
|
|
4554
4512
|
versions: {
|
|
4555
4513
|
videomailNinjaFormPlugin: void 0
|
|
4556
4514
|
}
|
|
@@ -4613,27 +4571,27 @@ function mergeWithDefaultOptions(options = {}) {
|
|
|
4613
4571
|
return newOptions;
|
|
4614
4572
|
}
|
|
4615
4573
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
4616
|
-
|
|
4574
|
+
const injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
4617
4575
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
4618
|
-
|
|
4576
|
+
const styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
4619
4577
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
4620
|
-
|
|
4578
|
+
const insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
4621
4579
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
4622
|
-
|
|
4580
|
+
const setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
4623
4581
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
4624
|
-
|
|
4582
|
+
const insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
4625
4583
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
4626
|
-
|
|
4584
|
+
const styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
4627
4585
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
4628
|
-
|
|
4586
|
+
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
4587
|
var main_options = {};
|
|
4630
4588
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
4631
4589
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
4632
4590
|
main_options.insert = insertBySelector_default().bind(null, "head");
|
|
4633
4591
|
main_options.domAPI = styleDomAPI_default();
|
|
4634
4592
|
main_options.insertStyleElement = insertStyleElement_default();
|
|
4635
|
-
injectStylesIntoStyleTag_default()(
|
|
4636
|
-
|
|
4593
|
+
injectStylesIntoStyleTag_default()(main_0.A, main_options);
|
|
4594
|
+
main_0.A && main_0.A.locals && main_0.A.locals;
|
|
4637
4595
|
function limitHeight(height, options, calledFrom) {
|
|
4638
4596
|
const dimension = {
|
|
4639
4597
|
unit: "px"
|
|
@@ -6207,9 +6165,9 @@ class UserMedia extends util_Despot {
|
|
|
6207
6165
|
explanation: "Calculated raw height cannot be undefined.",
|
|
6208
6166
|
options: this.options
|
|
6209
6167
|
});
|
|
6210
|
-
if (rawHeight < 1) throw error_createError({
|
|
6168
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
6211
6169
|
message: "Invalid height",
|
|
6212
|
-
explanation:
|
|
6170
|
+
explanation: `Calculated raw height of ${rawHeight} cannot be less than 1!`,
|
|
6213
6171
|
options: this.options
|
|
6214
6172
|
});
|
|
6215
6173
|
} else {
|
|
@@ -6219,7 +6177,7 @@ class UserMedia extends util_Despot {
|
|
|
6219
6177
|
explanation: "Raw video height from DOM element cannot be undefined.",
|
|
6220
6178
|
options: this.options
|
|
6221
6179
|
});
|
|
6222
|
-
if (rawHeight < 1) throw error_createError({
|
|
6180
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
6223
6181
|
message: "Bad dimensions",
|
|
6224
6182
|
explanation: "Raw video height from DOM element cannot be less than 1.",
|
|
6225
6183
|
options: this.options
|
|
@@ -7177,7 +7135,14 @@ class Recorder extends util_Despot {
|
|
|
7177
7135
|
value: height
|
|
7178
7136
|
};
|
|
7179
7137
|
} else if (this.userMedia) {
|
|
7180
|
-
|
|
7138
|
+
let height = this.userMedia.getRawHeight(responsive);
|
|
7139
|
+
if (void 0 !== height && this.options.video.width) {
|
|
7140
|
+
const ratio = this.getRatio();
|
|
7141
|
+
if (void 0 !== ratio) {
|
|
7142
|
+
const maxHeight = this.options.video.width * ratio;
|
|
7143
|
+
height = Math.min(maxHeight, height);
|
|
7144
|
+
}
|
|
7145
|
+
}
|
|
7181
7146
|
recorderHeight = {
|
|
7182
7147
|
unit: "px",
|
|
7183
7148
|
value: height
|
|
@@ -7557,8 +7522,10 @@ class Visuals extends util_Despot {
|
|
|
7557
7522
|
}
|
|
7558
7523
|
if (widthDimension?.value) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
7559
7524
|
else this.visualsElement.style.removeProperty("width");
|
|
7560
|
-
if (heightDimension?.value)
|
|
7561
|
-
|
|
7525
|
+
if (heightDimension?.value) {
|
|
7526
|
+
const height = `${heightDimension.value}${heightDimension.unit}`;
|
|
7527
|
+
this.visualsElement.style.height = height;
|
|
7528
|
+
} else this.visualsElement.style.removeProperty("height");
|
|
7562
7529
|
}
|
|
7563
7530
|
}
|
|
7564
7531
|
removeDimensions() {
|
|
@@ -7870,7 +7837,7 @@ class Container extends util_Despot {
|
|
|
7870
7837
|
}
|
|
7871
7838
|
initEvents(playerOnly = false) {
|
|
7872
7839
|
this.options.logger.debug(`Container: initEvents (playerOnly = ${playerOnly})`);
|
|
7873
|
-
window.addEventListener("resize", ()=>{
|
|
7840
|
+
if (this.options.recalculateDimensionsOnWindowResize) window.addEventListener("resize", ()=>{
|
|
7874
7841
|
if (!this.built) return;
|
|
7875
7842
|
this.emit("WINDOW_RESIZE", "container");
|
|
7876
7843
|
});
|
|
@@ -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__ };
|
|
@@ -116,6 +116,7 @@ export interface VideomailClientOptions {
|
|
|
116
116
|
reportErrors: boolean;
|
|
117
117
|
disableFormWhenSubmitting?: boolean | undefined;
|
|
118
118
|
fakeUaString?: string | undefined;
|
|
119
|
+
recalculateDimensionsOnWindowResize?: boolean;
|
|
119
120
|
versions?: {
|
|
120
121
|
videomailNinjaFormPlugin?: string | undefined;
|
|
121
122
|
};
|
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.10"
|
|
10674
10674
|
};
|
|
10675
10675
|
function isAudioEnabled(options) {
|
|
10676
10676
|
return Boolean(options.audio.enabled);
|
|
@@ -14883,6 +14883,7 @@
|
|
|
14883
14883
|
reportErrors: true,
|
|
14884
14884
|
disableFormWhenSubmitting: true,
|
|
14885
14885
|
fakeUaString: void 0,
|
|
14886
|
+
recalculateDimensionsOnWindowResize: false,
|
|
14886
14887
|
versions: {
|
|
14887
14888
|
videomailNinjaFormPlugin: void 0
|
|
14888
14889
|
}
|
|
@@ -14945,19 +14946,19 @@
|
|
|
14945
14946
|
return newOptions;
|
|
14946
14947
|
}
|
|
14947
14948
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
14948
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
14949
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
14949
14950
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
14950
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
14951
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
14951
14952
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
14952
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
14953
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
14953
14954
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
14954
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
14955
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
14955
14956
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
14956
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
14957
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
14957
14958
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
14958
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
14959
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
14959
14960
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
14960
|
-
var main = __webpack_require__("./node_modules/@
|
|
14961
|
+
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
14962
|
var main_options = {};
|
|
14962
14963
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
14963
14964
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -16619,9 +16620,9 @@
|
|
|
16619
16620
|
explanation: "Calculated raw height cannot be undefined.",
|
|
16620
16621
|
options: this.options
|
|
16621
16622
|
});
|
|
16622
|
-
if (rawHeight < 1) throw error_createError({
|
|
16623
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16623
16624
|
message: "Invalid height",
|
|
16624
|
-
explanation:
|
|
16625
|
+
explanation: `Calculated raw height of ${rawHeight} cannot be less than 1!`,
|
|
16625
16626
|
options: this.options
|
|
16626
16627
|
});
|
|
16627
16628
|
} else {
|
|
@@ -16631,7 +16632,7 @@
|
|
|
16631
16632
|
explanation: "Raw video height from DOM element cannot be undefined.",
|
|
16632
16633
|
options: this.options
|
|
16633
16634
|
});
|
|
16634
|
-
if (rawHeight < 1) throw error_createError({
|
|
16635
|
+
if (0 !== rawHeight && rawHeight < 1) throw error_createError({
|
|
16635
16636
|
message: "Bad dimensions",
|
|
16636
16637
|
explanation: "Raw video height from DOM element cannot be less than 1.",
|
|
16637
16638
|
options: this.options
|
|
@@ -17589,7 +17590,14 @@
|
|
|
17589
17590
|
value: height
|
|
17590
17591
|
};
|
|
17591
17592
|
} else if (this.userMedia) {
|
|
17592
|
-
|
|
17593
|
+
let height = this.userMedia.getRawHeight(responsive);
|
|
17594
|
+
if (void 0 !== height && this.options.video.width) {
|
|
17595
|
+
const ratio = this.getRatio();
|
|
17596
|
+
if (void 0 !== ratio) {
|
|
17597
|
+
const maxHeight = this.options.video.width * ratio;
|
|
17598
|
+
height = Math.min(maxHeight, height);
|
|
17599
|
+
}
|
|
17600
|
+
}
|
|
17593
17601
|
recorderHeight = {
|
|
17594
17602
|
unit: "px",
|
|
17595
17603
|
value: height
|
|
@@ -17969,8 +17977,10 @@
|
|
|
17969
17977
|
}
|
|
17970
17978
|
if (widthDimension?.value) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
17971
17979
|
else this.visualsElement.style.removeProperty("width");
|
|
17972
|
-
if (heightDimension?.value)
|
|
17973
|
-
|
|
17980
|
+
if (heightDimension?.value) {
|
|
17981
|
+
const height = `${heightDimension.value}${heightDimension.unit}`;
|
|
17982
|
+
this.visualsElement.style.height = height;
|
|
17983
|
+
} else this.visualsElement.style.removeProperty("height");
|
|
17974
17984
|
}
|
|
17975
17985
|
}
|
|
17976
17986
|
removeDimensions() {
|
|
@@ -18282,7 +18292,7 @@
|
|
|
18282
18292
|
}
|
|
18283
18293
|
initEvents(playerOnly = false) {
|
|
18284
18294
|
this.options.logger.debug(`Container: initEvents (playerOnly = ${playerOnly})`);
|
|
18285
|
-
window.addEventListener("resize", ()=>{
|
|
18295
|
+
if (this.options.recalculateDimensionsOnWindowResize) window.addEventListener("resize", ()=>{
|
|
18286
18296
|
if (!this.built) return;
|
|
18287
18297
|
this.emit("WINDOW_RESIZE", "container");
|
|
18288
18298
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.10",
|
|
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": "
|
|
108
|
+
"eslint-plugin-storybook": "10.1.11",
|
|
109
|
+
"globals": "17.0.0",
|
|
110
110
|
"jsdom": "27.4.0",
|
|
111
|
-
"msw": "2.12.
|
|
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
117
|
"release-it": "19.2.2",
|
|
118
|
-
"storybook": "10.1.
|
|
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": {
|