videomail-client 11.4.13 → 11.5.0
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 +150 -126
- package/dist/esm/index.js +34 -34
- package/dist/umd/index.js +150 -126
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -13,15 +13,15 @@ import websocket_stream from "websocket-stream";
|
|
|
13
13
|
import audio_sample from "audio-sample";
|
|
14
14
|
import is_power_of_two from "is-power-of-two";
|
|
15
15
|
var __webpack_modules__ = {
|
|
16
|
-
"./node_modules/@
|
|
16
|
+
"./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__) {
|
|
17
17
|
__webpack_require__.d(__webpack_exports__, {
|
|
18
18
|
A: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
19
19
|
});
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
20
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
21
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
22
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
23
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
24
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
25
25
|
___CSS_LOADER_EXPORT___.push([
|
|
26
26
|
module.id,
|
|
27
27
|
`@keyframes blink {
|
|
@@ -3325,7 +3325,7 @@ var __webpack_modules__ = {
|
|
|
3325
3325
|
return tryTypedArrays(value);
|
|
3326
3326
|
};
|
|
3327
3327
|
},
|
|
3328
|
-
"./node_modules/@
|
|
3328
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
3329
3329
|
module.exports = function(cssWithMappingToString) {
|
|
3330
3330
|
var list = [];
|
|
3331
3331
|
list.toString = function() {
|
|
@@ -3378,12 +3378,12 @@ var __webpack_modules__ = {
|
|
|
3378
3378
|
return list;
|
|
3379
3379
|
};
|
|
3380
3380
|
},
|
|
3381
|
-
"./node_modules/@
|
|
3381
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
3382
3382
|
module.exports = function(i) {
|
|
3383
3383
|
return i[1];
|
|
3384
3384
|
};
|
|
3385
3385
|
},
|
|
3386
|
-
"./node_modules/@
|
|
3386
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
3387
3387
|
var stylesInDOM = [];
|
|
3388
3388
|
function getIndexByIdentifier(identifier) {
|
|
3389
3389
|
var result = -1;
|
|
@@ -3461,7 +3461,7 @@ var __webpack_modules__ = {
|
|
|
3461
3461
|
};
|
|
3462
3462
|
};
|
|
3463
3463
|
},
|
|
3464
|
-
"./node_modules/@
|
|
3464
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
3465
3465
|
var memo = {};
|
|
3466
3466
|
function getTarget(target) {
|
|
3467
3467
|
if (void 0 === memo[target]) {
|
|
@@ -3482,7 +3482,7 @@ var __webpack_modules__ = {
|
|
|
3482
3482
|
}
|
|
3483
3483
|
module.exports = insertBySelector;
|
|
3484
3484
|
},
|
|
3485
|
-
"./node_modules/@
|
|
3485
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
3486
3486
|
function insertStyleElement(options) {
|
|
3487
3487
|
var element = document.createElement("style");
|
|
3488
3488
|
options.setAttributes(element, options.attributes);
|
|
@@ -3491,14 +3491,14 @@ var __webpack_modules__ = {
|
|
|
3491
3491
|
}
|
|
3492
3492
|
module.exports = insertStyleElement;
|
|
3493
3493
|
},
|
|
3494
|
-
"./node_modules/@
|
|
3494
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3495
3495
|
function setAttributesWithoutAttributes(styleElement) {
|
|
3496
3496
|
var nonce = __webpack_require__.nc;
|
|
3497
3497
|
if (nonce) styleElement.setAttribute("nonce", nonce);
|
|
3498
3498
|
}
|
|
3499
3499
|
module.exports = setAttributesWithoutAttributes;
|
|
3500
3500
|
},
|
|
3501
|
-
"./node_modules/@
|
|
3501
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
3502
3502
|
function apply(styleElement, options, obj) {
|
|
3503
3503
|
var css = "";
|
|
3504
3504
|
if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
|
|
@@ -3534,7 +3534,7 @@ var __webpack_modules__ = {
|
|
|
3534
3534
|
}
|
|
3535
3535
|
module.exports = domAPI;
|
|
3536
3536
|
},
|
|
3537
|
-
"./node_modules/@
|
|
3537
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
3538
3538
|
function styleTagTransform(css, styleElement) {
|
|
3539
3539
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
3540
3540
|
else {
|
|
@@ -3607,7 +3607,7 @@ const constants = {
|
|
|
3607
3607
|
}
|
|
3608
3608
|
};
|
|
3609
3609
|
var package_namespaceObject = {
|
|
3610
|
-
rE: "11.
|
|
3610
|
+
rE: "11.5.0"
|
|
3611
3611
|
};
|
|
3612
3612
|
const VideoType = {
|
|
3613
3613
|
WebM: "webm",
|
|
@@ -3785,7 +3785,7 @@ class VideomailError extends HTTPVideomailError {
|
|
|
3785
3785
|
screen.width,
|
|
3786
3786
|
screen.height,
|
|
3787
3787
|
screen.colorDepth
|
|
3788
|
-
].join("
|
|
3788
|
+
].join("×");
|
|
3789
3789
|
if (screen.orientation) this.orientation = screen.orientation.type;
|
|
3790
3790
|
this.err = errData?.err;
|
|
3791
3791
|
const stackTarget = errData?.cause ?? errData?.err;
|
|
@@ -4604,19 +4604,19 @@ function mergeWithDefaultOptions_mergeWithDefaultOptions(options = {}) {
|
|
|
4604
4604
|
return newOptions;
|
|
4605
4605
|
}
|
|
4606
4606
|
const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
|
|
4607
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
4607
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
4608
4608
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
4609
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
4609
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
4610
4610
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
4611
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
4611
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
4612
4612
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
4613
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
4613
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
4614
4614
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
4615
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
4615
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
4616
4616
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
4617
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
4617
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
4618
4618
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
4619
|
-
var main = __webpack_require__("./node_modules/@
|
|
4619
|
+
var main = __webpack_require__("./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");
|
|
4620
4620
|
var main_options = {};
|
|
4621
4621
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
4622
4622
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -5171,7 +5171,7 @@ class FacingMode extends util_Despot {
|
|
|
5171
5171
|
else {
|
|
5172
5172
|
this.facingModeElement = document.createElement("button");
|
|
5173
5173
|
this.facingModeElement.classList.add("facingMode");
|
|
5174
|
-
this.facingModeElement.innerHTML = "
|
|
5174
|
+
this.facingModeElement.innerHTML = "⤾";
|
|
5175
5175
|
this.facingModeElement.onclick = (e)=>{
|
|
5176
5176
|
e?.preventDefault();
|
|
5177
5177
|
try {
|
|
@@ -5518,17 +5518,17 @@ class Notifier extends util_Despot {
|
|
|
5518
5518
|
this.options.logger.debug("Limit reached");
|
|
5519
5519
|
lead += `${this.options.text.limitReached}.<br/>`;
|
|
5520
5520
|
}
|
|
5521
|
-
lead += `${this.options.text.sending}
|
|
5521
|
+
lead += `${this.options.text.sending} …`;
|
|
5522
5522
|
this.notify(lead, void 0, {
|
|
5523
5523
|
stillWait: true,
|
|
5524
5524
|
entertain: this.options.notifier.entertain
|
|
5525
5525
|
});
|
|
5526
5526
|
}
|
|
5527
5527
|
onConnecting() {
|
|
5528
|
-
this.notify("Connecting
|
|
5528
|
+
this.notify("Connecting …");
|
|
5529
5529
|
}
|
|
5530
5530
|
onLoadingUserMedia() {
|
|
5531
|
-
this.notify("Loading webcam
|
|
5531
|
+
this.notify("Loading webcam …");
|
|
5532
5532
|
}
|
|
5533
5533
|
onProgress(frameProgress, sampleProgress) {
|
|
5534
5534
|
let overallProgress;
|
|
@@ -5540,7 +5540,7 @@ class Notifier extends util_Despot {
|
|
|
5540
5540
|
}
|
|
5541
5541
|
onBeginVideoEncoding() {
|
|
5542
5542
|
this.visuals.beginWaiting();
|
|
5543
|
-
const lead = `${this.options.text.encoding}
|
|
5543
|
+
const lead = `${this.options.text.encoding} …`;
|
|
5544
5544
|
this.notify(lead, void 0, {
|
|
5545
5545
|
stillWait: true,
|
|
5546
5546
|
entertain: this.options.notifier.entertain
|
|
@@ -5572,7 +5572,7 @@ class Notifier extends util_Despot {
|
|
|
5572
5572
|
this.onBeginVideoEncoding();
|
|
5573
5573
|
});
|
|
5574
5574
|
this.on("UNLOADING", ()=>{
|
|
5575
|
-
this.notify("Unloading
|
|
5575
|
+
this.notify("Unloading …");
|
|
5576
5576
|
});
|
|
5577
5577
|
this.on("DISCONNECTED", ()=>{
|
|
5578
5578
|
this.notify("Disconnected");
|
|
@@ -5893,7 +5893,7 @@ const MEDIA_EVENTS = [
|
|
|
5893
5893
|
"volumechange"
|
|
5894
5894
|
];
|
|
5895
5895
|
const mediaEvents = MEDIA_EVENTS;
|
|
5896
|
-
const EVENT_ASCII = "
|
|
5896
|
+
const EVENT_ASCII = "|—O—|";
|
|
5897
5897
|
class UserMedia extends util_Despot {
|
|
5898
5898
|
recorder;
|
|
5899
5899
|
rawVisualUserMedia;
|
|
@@ -6183,7 +6183,7 @@ class UserMedia extends util_Despot {
|
|
|
6183
6183
|
}
|
|
6184
6184
|
const visuals_userMedia = UserMedia;
|
|
6185
6185
|
var Buffer = __webpack_require__("./node_modules/buffer/index.js")["Buffer"];
|
|
6186
|
-
const PIPE_SYMBOL = "
|
|
6186
|
+
const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
|
|
6187
6187
|
class Recorder extends util_Despot {
|
|
6188
6188
|
visuals;
|
|
6189
6189
|
replay;
|
|
@@ -6685,7 +6685,7 @@ class Recorder extends util_Despot {
|
|
|
6685
6685
|
}, 0);
|
|
6686
6686
|
}
|
|
6687
6687
|
} else {
|
|
6688
|
-
this.options.logger.debug(`Reconnecting for the command ${command}
|
|
6688
|
+
this.options.logger.debug(`Reconnecting for the command ${command} …`);
|
|
6689
6689
|
this.initSocket(()=>{
|
|
6690
6690
|
this.writeCommand(command, args);
|
|
6691
6691
|
cb?.();
|
|
@@ -7965,7 +7965,7 @@ class Container extends util_Despot {
|
|
|
7965
7965
|
const name = invalidInput.getAttribute("name");
|
|
7966
7966
|
valid = false;
|
|
7967
7967
|
if (name) {
|
|
7968
|
-
whyInvalid = `Input "${name}" seems wrong
|
|
7968
|
+
whyInvalid = `Input "${name}" seems wrong 🤔`;
|
|
7969
7969
|
invalidData = {
|
|
7970
7970
|
[name]: invalidInput.getAttribute("value")
|
|
7971
7971
|
};
|
|
@@ -7973,7 +7973,7 @@ class Container extends util_Despot {
|
|
|
7973
7973
|
} else if (!this.areVisualsHidden() && !visualsValid) {
|
|
7974
7974
|
if (this.buttonsAreReady() || this.isRecording() || this.isPaused() || this.isCountingDown()) {
|
|
7975
7975
|
valid = false;
|
|
7976
|
-
whyInvalid = "Don't forget to record a video
|
|
7976
|
+
whyInvalid = "Don't forget to record a video 😉";
|
|
7977
7977
|
invalidData = {
|
|
7978
7978
|
key: void 0
|
|
7979
7979
|
};
|