videomail-client 11.0.4 → 11.0.5
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 +46 -43
- package/dist/esm/index.js +52 -43
- package/dist/esm/util/CollectLogger.d.ts +4 -4
- package/dist/esm/wrappers/buttons.d.ts +1 -1
- package/dist/esm/wrappers/visuals/inside/recorder/countdown.d.ts +2 -2
- package/dist/esm/wrappers/visuals/inside/recorder/facingMode.d.ts +1 -1
- package/dist/esm/wrappers/visuals/inside/recorder/pausedNote.d.ts +2 -2
- package/dist/esm/wrappers/visuals/inside/recorder/recordNote.d.ts +1 -1
- package/dist/esm/wrappers/visuals/inside/recorder/recordTimer.d.ts +3 -3
- package/dist/esm/wrappers/visuals/inside/recorderInsides.d.ts +5 -5
- package/dist/esm/wrappers/visuals/notifier.d.ts +1 -1
- package/dist/esm/wrappers/visuals/userMedia.d.ts +2 -2
- package/dist/esm/wrappers/visuals.d.ts +4 -4
- package/dist/umd/index.js +18117 -4471
- package/package.json +9 -9
- package/dist/esm/util/isPromise.d.ts +0 -2
- package/dist/umd/99.js +0 -13754
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[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__) {
|
|
3
3
|
"use strict";
|
|
4
4
|
__webpack_require__.d(__webpack_exports__, {
|
|
5
5
|
A: ()=>__WEBPACK_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__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
8
|
+
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__);
|
|
9
|
+
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");
|
|
10
|
+
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__);
|
|
11
|
+
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());
|
|
12
12
|
___CSS_LOADER_EXPORT___.push([
|
|
13
13
|
module.id,
|
|
14
14
|
`@keyframes blink {
|
|
@@ -10188,7 +10188,7 @@ var __webpack_modules__ = {
|
|
|
10188
10188
|
"?aa23": function() {},
|
|
10189
10189
|
"?9936": function() {},
|
|
10190
10190
|
"?5f55": function() {},
|
|
10191
|
-
"./node_modules/@
|
|
10191
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
10192
10192
|
"use strict";
|
|
10193
10193
|
module.exports = function(cssWithMappingToString) {
|
|
10194
10194
|
var list = [];
|
|
@@ -10242,13 +10242,13 @@ var __webpack_modules__ = {
|
|
|
10242
10242
|
return list;
|
|
10243
10243
|
};
|
|
10244
10244
|
},
|
|
10245
|
-
"./node_modules/@
|
|
10245
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
10246
10246
|
"use strict";
|
|
10247
10247
|
module.exports = function(i) {
|
|
10248
10248
|
return i[1];
|
|
10249
10249
|
};
|
|
10250
10250
|
},
|
|
10251
|
-
"./node_modules/@
|
|
10251
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
10252
10252
|
"use strict";
|
|
10253
10253
|
var stylesInDOM = [];
|
|
10254
10254
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10327,7 +10327,7 @@ var __webpack_modules__ = {
|
|
|
10327
10327
|
};
|
|
10328
10328
|
};
|
|
10329
10329
|
},
|
|
10330
|
-
"./node_modules/@
|
|
10330
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
10331
10331
|
"use strict";
|
|
10332
10332
|
var memo = {};
|
|
10333
10333
|
function getTarget(target) {
|
|
@@ -10349,7 +10349,7 @@ var __webpack_modules__ = {
|
|
|
10349
10349
|
}
|
|
10350
10350
|
module.exports = insertBySelector;
|
|
10351
10351
|
},
|
|
10352
|
-
"./node_modules/@
|
|
10352
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
10353
10353
|
"use strict";
|
|
10354
10354
|
function insertStyleElement(options) {
|
|
10355
10355
|
var element = document.createElement("style");
|
|
@@ -10359,7 +10359,7 @@ var __webpack_modules__ = {
|
|
|
10359
10359
|
}
|
|
10360
10360
|
module.exports = insertStyleElement;
|
|
10361
10361
|
},
|
|
10362
|
-
"./node_modules/@
|
|
10362
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10363
10363
|
"use strict";
|
|
10364
10364
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10365
10365
|
var nonce = __webpack_require__.nc;
|
|
@@ -10367,7 +10367,7 @@ var __webpack_modules__ = {
|
|
|
10367
10367
|
}
|
|
10368
10368
|
module.exports = setAttributesWithoutAttributes;
|
|
10369
10369
|
},
|
|
10370
|
-
"./node_modules/@
|
|
10370
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
10371
10371
|
"use strict";
|
|
10372
10372
|
function apply(styleElement, options, obj) {
|
|
10373
10373
|
var css = "";
|
|
@@ -10404,7 +10404,7 @@ var __webpack_modules__ = {
|
|
|
10404
10404
|
}
|
|
10405
10405
|
module.exports = domAPI;
|
|
10406
10406
|
},
|
|
10407
|
-
"./node_modules/@
|
|
10407
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
10408
10408
|
"use strict";
|
|
10409
10409
|
function styleTagTransform(css, styleElement) {
|
|
10410
10410
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10649,7 +10649,7 @@ var __webpack_exports__ = {};
|
|
|
10649
10649
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10650
10650
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10651
10651
|
var package_namespaceObject = {
|
|
10652
|
-
rE: "11.0.
|
|
10652
|
+
rE: "11.0.5"
|
|
10653
10653
|
};
|
|
10654
10654
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10655
10655
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -14925,19 +14925,19 @@ var __webpack_exports__ = {};
|
|
|
14925
14925
|
return newOptions;
|
|
14926
14926
|
}
|
|
14927
14927
|
const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
|
|
14928
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
14928
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
14929
14929
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
14930
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
14930
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
14931
14931
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
14932
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
14932
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
14933
14933
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
14934
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
14934
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
14935
14935
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
14936
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
14936
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
14937
14937
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
14938
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
14938
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
14939
14939
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
14940
|
-
var main = __webpack_require__("./node_modules/@
|
|
14940
|
+
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");
|
|
14941
14941
|
var main_options = {};
|
|
14942
14942
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
14943
14943
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -16415,10 +16415,6 @@ var __webpack_exports__ = {};
|
|
|
16415
16415
|
"volumechange"
|
|
16416
16416
|
];
|
|
16417
16417
|
const mediaEvents = MEDIA_EVENTS;
|
|
16418
|
-
function isPromise_isPromise(anything) {
|
|
16419
|
-
return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
|
|
16420
|
-
}
|
|
16421
|
-
const isPromise = isPromise_isPromise;
|
|
16422
16418
|
function userMedia_define_property(obj, key, value) {
|
|
16423
16419
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
16424
16420
|
value: value,
|
|
@@ -16504,19 +16500,18 @@ var __webpack_exports__ = {};
|
|
|
16504
16500
|
null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.load();
|
|
16505
16501
|
if (null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.paused) {
|
|
16506
16502
|
this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${util_pretty(this.rawVisualUserMedia.played)}`);
|
|
16507
|
-
|
|
16508
|
-
try {
|
|
16509
|
-
p = this.rawVisualUserMedia.play();
|
|
16510
|
-
} catch (exc) {
|
|
16511
|
-
this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
|
|
16512
|
-
}
|
|
16513
|
-
if (isPromise(p)) p.then(()=>{
|
|
16503
|
+
this.rawVisualUserMedia.play().then(()=>{
|
|
16514
16504
|
if (!this.playingPromiseReached) {
|
|
16515
16505
|
this.options.logger.debug("UserMedia: play promise successful. Playing now.");
|
|
16516
16506
|
this.playingPromiseReached = true;
|
|
16517
16507
|
}
|
|
16518
|
-
}).catch((
|
|
16519
|
-
this.options.logger.warn(`Caught pending user media promise exception: ${
|
|
16508
|
+
}).catch((exc)=>{
|
|
16509
|
+
if (exc instanceof Error) this.options.logger.warn(`Caught pending user media promise exception: ${exc.toString()}`);
|
|
16510
|
+
else throw error_createError({
|
|
16511
|
+
message: "Failed to play user media upon play event.",
|
|
16512
|
+
exc,
|
|
16513
|
+
options: this.options
|
|
16514
|
+
});
|
|
16520
16515
|
});
|
|
16521
16516
|
}
|
|
16522
16517
|
} catch (exc) {
|
|
@@ -16620,12 +16615,12 @@ var __webpack_exports__ = {};
|
|
|
16620
16615
|
let chosenStream = visualStream;
|
|
16621
16616
|
if (!(null == params ? void 0 : params.aboutToInitialize)) {
|
|
16622
16617
|
var _this_audioRecorder;
|
|
16623
|
-
|
|
16618
|
+
null != chosenStream || (chosenStream = this.currentVisualStream);
|
|
16624
16619
|
const tracks = null == chosenStream ? void 0 : chosenStream.getTracks();
|
|
16625
16620
|
if (tracks) tracks.forEach((track)=>{
|
|
16626
16621
|
track.stop();
|
|
16627
16622
|
});
|
|
16628
|
-
this.setVisualStream(
|
|
16623
|
+
this.setVisualStream();
|
|
16629
16624
|
null == (_this_audioRecorder = this.audioRecorder) || _this_audioRecorder.stop();
|
|
16630
16625
|
this.audioRecorder = void 0;
|
|
16631
16626
|
}
|
|
@@ -16888,7 +16883,7 @@ var __webpack_exports__ = {};
|
|
|
16888
16883
|
hasAudio
|
|
16889
16884
|
});
|
|
16890
16885
|
if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
|
|
16891
|
-
|
|
16886
|
+
null != this.recordingStats || (this.recordingStats = {});
|
|
16892
16887
|
this.recordingStats.waitingTime = this.waitingTime;
|
|
16893
16888
|
}
|
|
16894
16889
|
initSocket(cb) {
|
|
@@ -17564,7 +17559,7 @@ var __webpack_exports__ = {};
|
|
|
17564
17559
|
this.recorderElement.style["-webkit-transform"] = "rotateY(180deg)";
|
|
17565
17560
|
this.recorderElement.style["-moz-transform"] = "rotateY(180deg)";
|
|
17566
17561
|
if (this.options.video.stretch) this.recorderElement.style.width = "100%";
|
|
17567
|
-
|
|
17562
|
+
null != this.userMedia || (this.userMedia = new visuals_userMedia(this, this.options));
|
|
17568
17563
|
this.show();
|
|
17569
17564
|
if (this.built) {
|
|
17570
17565
|
if (this.options.loadUserMediaOnRecord) this.loadUserMedia();
|
|
@@ -17786,8 +17781,12 @@ var __webpack_exports__ = {};
|
|
|
17786
17781
|
this.replayElement.addEventListener("touchstart", (e)=>{
|
|
17787
17782
|
var _this_replayElement;
|
|
17788
17783
|
e.preventDefault();
|
|
17789
|
-
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((
|
|
17790
|
-
throw
|
|
17784
|
+
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((exc)=>{
|
|
17785
|
+
throw error_createError({
|
|
17786
|
+
message: "Failed to play replay video while paused upon touchstart event.",
|
|
17787
|
+
exc,
|
|
17788
|
+
options: this.options
|
|
17789
|
+
});
|
|
17791
17790
|
});
|
|
17792
17791
|
else {
|
|
17793
17792
|
var _this_replayElement1;
|
|
@@ -17799,8 +17798,12 @@ var __webpack_exports__ = {};
|
|
|
17799
17798
|
this.replayElement.addEventListener("click", (e)=>{
|
|
17800
17799
|
var _this_replayElement;
|
|
17801
17800
|
e.preventDefault();
|
|
17802
|
-
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((
|
|
17803
|
-
throw
|
|
17801
|
+
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((exc)=>{
|
|
17802
|
+
throw error_createError({
|
|
17803
|
+
message: "Failed to play replay video while paused upon click event.",
|
|
17804
|
+
exc,
|
|
17805
|
+
options: this.options
|
|
17806
|
+
});
|
|
17804
17807
|
});
|
|
17805
17808
|
else {
|
|
17806
17809
|
var _this_replayElement1;
|
package/dist/esm/index.js
CHANGED
|
@@ -14,15 +14,15 @@ import websocket_stream from "websocket-stream";
|
|
|
14
14
|
import audio_sample from "audio-sample";
|
|
15
15
|
import is_power_of_two from "is-power-of-two";
|
|
16
16
|
var __webpack_modules__ = {
|
|
17
|
-
"./node_modules/@
|
|
17
|
+
"./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__) {
|
|
18
18
|
__webpack_require__.d(__webpack_exports__, {
|
|
19
19
|
A: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
20
20
|
});
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
21
|
+
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");
|
|
22
|
+
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__);
|
|
23
|
+
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");
|
|
24
|
+
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__);
|
|
25
|
+
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());
|
|
26
26
|
___CSS_LOADER_EXPORT___.push([
|
|
27
27
|
module.id,
|
|
28
28
|
`@keyframes blink {
|
|
@@ -265,8 +265,10 @@ var __webpack_modules__ = {
|
|
|
265
265
|
var ieee754 = __webpack_require__("./node_modules/ieee754/index.js");
|
|
266
266
|
var customInspectSymbol = 'function' == typeof Symbol && 'function' == typeof Symbol['for'] ? Symbol['for']('nodejs.util.inspect.custom') : null;
|
|
267
267
|
exports.Buffer = Buffer;
|
|
268
|
+
exports.SlowBuffer = SlowBuffer;
|
|
268
269
|
exports.INSPECT_MAX_BYTES = 50;
|
|
269
270
|
var K_MAX_LENGTH = 0x7fffffff;
|
|
271
|
+
exports.kMaxLength = K_MAX_LENGTH;
|
|
270
272
|
Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
271
273
|
if (!Buffer.TYPED_ARRAY_SUPPORT && 'undefined' != typeof console && 'function' == typeof console.error) console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
|
|
272
274
|
function typedArraySupport() {
|
|
@@ -402,6 +404,10 @@ var __webpack_modules__ = {
|
|
|
402
404
|
if (length >= K_MAX_LENGTH) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + ' bytes');
|
|
403
405
|
return 0 | length;
|
|
404
406
|
}
|
|
407
|
+
function SlowBuffer(length) {
|
|
408
|
+
if (+length != length) length = 0;
|
|
409
|
+
return Buffer.alloc(+length);
|
|
410
|
+
}
|
|
405
411
|
Buffer.isBuffer = function(b) {
|
|
406
412
|
return null != b && true === b._isBuffer && b !== Buffer.prototype;
|
|
407
413
|
};
|
|
@@ -3320,7 +3326,7 @@ var __webpack_modules__ = {
|
|
|
3320
3326
|
return tryTypedArrays(value);
|
|
3321
3327
|
};
|
|
3322
3328
|
},
|
|
3323
|
-
"./node_modules/@
|
|
3329
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
3324
3330
|
module.exports = function(cssWithMappingToString) {
|
|
3325
3331
|
var list = [];
|
|
3326
3332
|
list.toString = function() {
|
|
@@ -3373,12 +3379,12 @@ var __webpack_modules__ = {
|
|
|
3373
3379
|
return list;
|
|
3374
3380
|
};
|
|
3375
3381
|
},
|
|
3376
|
-
"./node_modules/@
|
|
3382
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
3377
3383
|
module.exports = function(i) {
|
|
3378
3384
|
return i[1];
|
|
3379
3385
|
};
|
|
3380
3386
|
},
|
|
3381
|
-
"./node_modules/@
|
|
3387
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
3382
3388
|
var stylesInDOM = [];
|
|
3383
3389
|
function getIndexByIdentifier(identifier) {
|
|
3384
3390
|
var result = -1;
|
|
@@ -3456,7 +3462,7 @@ var __webpack_modules__ = {
|
|
|
3456
3462
|
};
|
|
3457
3463
|
};
|
|
3458
3464
|
},
|
|
3459
|
-
"./node_modules/@
|
|
3465
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
3460
3466
|
var memo = {};
|
|
3461
3467
|
function getTarget(target) {
|
|
3462
3468
|
if (void 0 === memo[target]) {
|
|
@@ -3477,7 +3483,7 @@ var __webpack_modules__ = {
|
|
|
3477
3483
|
}
|
|
3478
3484
|
module.exports = insertBySelector;
|
|
3479
3485
|
},
|
|
3480
|
-
"./node_modules/@
|
|
3486
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
3481
3487
|
function insertStyleElement(options) {
|
|
3482
3488
|
var element = document.createElement("style");
|
|
3483
3489
|
options.setAttributes(element, options.attributes);
|
|
@@ -3486,14 +3492,14 @@ var __webpack_modules__ = {
|
|
|
3486
3492
|
}
|
|
3487
3493
|
module.exports = insertStyleElement;
|
|
3488
3494
|
},
|
|
3489
|
-
"./node_modules/@
|
|
3495
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3490
3496
|
function setAttributesWithoutAttributes(styleElement) {
|
|
3491
3497
|
var nonce = __webpack_require__.nc;
|
|
3492
3498
|
if (nonce) styleElement.setAttribute("nonce", nonce);
|
|
3493
3499
|
}
|
|
3494
3500
|
module.exports = setAttributesWithoutAttributes;
|
|
3495
3501
|
},
|
|
3496
|
-
"./node_modules/@
|
|
3502
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
3497
3503
|
function apply(styleElement, options, obj) {
|
|
3498
3504
|
var css = "";
|
|
3499
3505
|
if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
|
|
@@ -3529,7 +3535,7 @@ var __webpack_modules__ = {
|
|
|
3529
3535
|
}
|
|
3530
3536
|
module.exports = domAPI;
|
|
3531
3537
|
},
|
|
3532
|
-
"./node_modules/@
|
|
3538
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
3533
3539
|
function styleTagTransform(css, styleElement) {
|
|
3534
3540
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
3535
3541
|
else {
|
|
@@ -3602,7 +3608,7 @@ const constants = {
|
|
|
3602
3608
|
}
|
|
3603
3609
|
};
|
|
3604
3610
|
var package_namespaceObject = {
|
|
3605
|
-
rE: "11.0.
|
|
3611
|
+
rE: "11.0.5"
|
|
3606
3612
|
};
|
|
3607
3613
|
var VideoType_VideoType = /*#__PURE__*/ function(VideoType) {
|
|
3608
3614
|
VideoType["WebM"] = "webm";
|
|
@@ -4585,19 +4591,19 @@ function mergeWithDefaultOptions_mergeWithDefaultOptions(options = {}) {
|
|
|
4585
4591
|
return newOptions;
|
|
4586
4592
|
}
|
|
4587
4593
|
const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
|
|
4588
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
4594
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
4589
4595
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
4590
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
4596
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
4591
4597
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
4592
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
4598
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
4593
4599
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
4594
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
4600
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
4595
4601
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
4596
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
4602
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
4597
4603
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
4598
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
4604
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
4599
4605
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
4600
|
-
var main = __webpack_require__("./node_modules/@
|
|
4606
|
+
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");
|
|
4601
4607
|
var main_options = {};
|
|
4602
4608
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
4603
4609
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -5877,10 +5883,6 @@ const MEDIA_EVENTS = [
|
|
|
5877
5883
|
"volumechange"
|
|
5878
5884
|
];
|
|
5879
5885
|
const mediaEvents = MEDIA_EVENTS;
|
|
5880
|
-
function isPromise_isPromise(anything) {
|
|
5881
|
-
return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
|
|
5882
|
-
}
|
|
5883
|
-
const isPromise = isPromise_isPromise;
|
|
5884
5886
|
const EVENT_ASCII = "|\u2014O\u2014|";
|
|
5885
5887
|
class UserMedia extends util_Despot {
|
|
5886
5888
|
recorder;
|
|
@@ -5965,19 +5967,18 @@ class UserMedia extends util_Despot {
|
|
|
5965
5967
|
this.rawVisualUserMedia?.load();
|
|
5966
5968
|
if (this.rawVisualUserMedia?.paused) {
|
|
5967
5969
|
this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${util_pretty(this.rawVisualUserMedia.played)}`);
|
|
5968
|
-
|
|
5969
|
-
try {
|
|
5970
|
-
p = this.rawVisualUserMedia.play();
|
|
5971
|
-
} catch (exc) {
|
|
5972
|
-
this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
|
|
5973
|
-
}
|
|
5974
|
-
if (isPromise(p)) p.then(()=>{
|
|
5970
|
+
this.rawVisualUserMedia.play().then(()=>{
|
|
5975
5971
|
if (!this.playingPromiseReached) {
|
|
5976
5972
|
this.options.logger.debug("UserMedia: play promise successful. Playing now.");
|
|
5977
5973
|
this.playingPromiseReached = true;
|
|
5978
5974
|
}
|
|
5979
|
-
}).catch((
|
|
5980
|
-
this.options.logger.warn(`Caught pending user media promise exception: ${
|
|
5975
|
+
}).catch((exc)=>{
|
|
5976
|
+
if (exc instanceof Error) this.options.logger.warn(`Caught pending user media promise exception: ${exc.toString()}`);
|
|
5977
|
+
else throw error_createError({
|
|
5978
|
+
message: "Failed to play user media upon play event.",
|
|
5979
|
+
exc,
|
|
5980
|
+
options: this.options
|
|
5981
|
+
});
|
|
5981
5982
|
});
|
|
5982
5983
|
}
|
|
5983
5984
|
} catch (exc) {
|
|
@@ -6075,12 +6076,12 @@ class UserMedia extends util_Despot {
|
|
|
6075
6076
|
try {
|
|
6076
6077
|
let chosenStream = visualStream;
|
|
6077
6078
|
if (!params?.aboutToInitialize) {
|
|
6078
|
-
|
|
6079
|
+
chosenStream ??= this.currentVisualStream;
|
|
6079
6080
|
const tracks = chosenStream?.getTracks();
|
|
6080
6081
|
if (tracks) tracks.forEach((track)=>{
|
|
6081
6082
|
track.stop();
|
|
6082
6083
|
});
|
|
6083
|
-
this.setVisualStream(
|
|
6084
|
+
this.setVisualStream();
|
|
6084
6085
|
this.audioRecorder?.stop();
|
|
6085
6086
|
this.audioRecorder = void 0;
|
|
6086
6087
|
}
|
|
@@ -6362,7 +6363,7 @@ class Recorder extends util_Despot {
|
|
|
6362
6363
|
hasAudio
|
|
6363
6364
|
});
|
|
6364
6365
|
if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
|
|
6365
|
-
|
|
6366
|
+
this.recordingStats ??= {};
|
|
6366
6367
|
this.recordingStats.waitingTime = this.waitingTime;
|
|
6367
6368
|
}
|
|
6368
6369
|
initSocket(cb) {
|
|
@@ -7025,7 +7026,7 @@ class Recorder extends util_Despot {
|
|
|
7025
7026
|
this.recorderElement.style["-webkit-transform"] = "rotateY(180deg)";
|
|
7026
7027
|
this.recorderElement.style["-moz-transform"] = "rotateY(180deg)";
|
|
7027
7028
|
if (this.options.video.stretch) this.recorderElement.style.width = "100%";
|
|
7028
|
-
|
|
7029
|
+
this.userMedia ??= new visuals_userMedia(this, this.options);
|
|
7029
7030
|
this.show();
|
|
7030
7031
|
if (this.built) {
|
|
7031
7032
|
if (this.options.loadUserMediaOnRecord) this.loadUserMedia();
|
|
@@ -7226,8 +7227,12 @@ class Replay extends util_Despot {
|
|
|
7226
7227
|
});
|
|
7227
7228
|
this.replayElement.addEventListener("touchstart", (e)=>{
|
|
7228
7229
|
e.preventDefault();
|
|
7229
|
-
if (this.replayElement?.paused) this.replayElement.play().catch((
|
|
7230
|
-
throw
|
|
7230
|
+
if (this.replayElement?.paused) this.replayElement.play().catch((exc)=>{
|
|
7231
|
+
throw error_createError({
|
|
7232
|
+
message: "Failed to play replay video while paused upon touchstart event.",
|
|
7233
|
+
exc,
|
|
7234
|
+
options: this.options
|
|
7235
|
+
});
|
|
7231
7236
|
});
|
|
7232
7237
|
else this.replayElement?.pause();
|
|
7233
7238
|
}, {
|
|
@@ -7235,8 +7240,12 @@ class Replay extends util_Despot {
|
|
|
7235
7240
|
});
|
|
7236
7241
|
this.replayElement.addEventListener("click", (e)=>{
|
|
7237
7242
|
e.preventDefault();
|
|
7238
|
-
if (this.replayElement?.paused) this.replayElement.play().catch((
|
|
7239
|
-
throw
|
|
7243
|
+
if (this.replayElement?.paused) this.replayElement.play().catch((exc)=>{
|
|
7244
|
+
throw error_createError({
|
|
7245
|
+
message: "Failed to play replay video while paused upon click event.",
|
|
7246
|
+
exc,
|
|
7247
|
+
options: this.options
|
|
7248
|
+
});
|
|
7240
7249
|
});
|
|
7241
7250
|
else this.replayElement?.pause();
|
|
7242
7251
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VideomailClientOptions } from "../types/options";
|
|
2
2
|
declare class CollectLogger {
|
|
3
|
-
private browser;
|
|
4
|
-
private logger;
|
|
5
|
-
private stack;
|
|
6
|
-
private options;
|
|
3
|
+
private readonly browser;
|
|
4
|
+
private readonly logger;
|
|
5
|
+
private readonly stack;
|
|
6
|
+
private readonly options;
|
|
7
7
|
constructor(options: VideomailClientOptions);
|
|
8
8
|
private lifo;
|
|
9
9
|
debug(...args: any[]): void;
|
|
@@ -2,7 +2,7 @@ import { VideomailClientOptions } from "../types/options";
|
|
|
2
2
|
import Despot from "../util/Despot";
|
|
3
3
|
import Container from "./container";
|
|
4
4
|
declare class Buttons extends Despot {
|
|
5
|
-
private container;
|
|
5
|
+
private readonly container;
|
|
6
6
|
private buttonsElement?;
|
|
7
7
|
private recordButton?;
|
|
8
8
|
private pauseButton?;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VideomailClientOptions } from "../../../../types/options";
|
|
2
2
|
import Visuals from "../../../visuals";
|
|
3
3
|
declare class Countdown {
|
|
4
|
-
private visuals;
|
|
5
|
-
private options;
|
|
4
|
+
private readonly visuals;
|
|
5
|
+
private readonly options;
|
|
6
6
|
private countdownElement?;
|
|
7
7
|
private intervalId?;
|
|
8
8
|
private countdown?;
|
|
@@ -2,7 +2,7 @@ import { VideomailClientOptions } from "../../../../types/options";
|
|
|
2
2
|
import Despot from "../../../../util/Despot";
|
|
3
3
|
import Visuals from "../../../visuals";
|
|
4
4
|
declare class FacingMode extends Despot {
|
|
5
|
-
private visuals;
|
|
5
|
+
private readonly visuals;
|
|
6
6
|
private facingModeElement?;
|
|
7
7
|
constructor(visuals: Visuals, options: VideomailClientOptions);
|
|
8
8
|
private initEvents;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VideomailClientOptions } from "../../../../types/options";
|
|
2
2
|
import Visuals from "../../../visuals";
|
|
3
3
|
declare class PausedNote {
|
|
4
|
-
private visuals;
|
|
5
|
-
private options;
|
|
4
|
+
private readonly visuals;
|
|
5
|
+
private readonly options;
|
|
6
6
|
private pausedBlockElement?;
|
|
7
7
|
private pausedHeaderElement?;
|
|
8
8
|
private pausedHintElement?;
|
|
@@ -2,9 +2,9 @@ import { VideomailClientOptions } from "../../../../types/options";
|
|
|
2
2
|
import Visuals from "../../../visuals";
|
|
3
3
|
import RecordNote from "./recordNote";
|
|
4
4
|
declare class RecordTimer {
|
|
5
|
-
private visuals;
|
|
6
|
-
private recordNote;
|
|
7
|
-
private options;
|
|
5
|
+
private readonly visuals;
|
|
6
|
+
private readonly recordNote;
|
|
7
|
+
private readonly options;
|
|
8
8
|
private recordTimerElement?;
|
|
9
9
|
private nearComputed;
|
|
10
10
|
private endNighComputed;
|
|
@@ -2,11 +2,11 @@ import { VideomailClientOptions } from "../../../types/options";
|
|
|
2
2
|
import Despot from "../../../util/Despot";
|
|
3
3
|
import Visuals from "../../visuals";
|
|
4
4
|
declare class RecorderInsides extends Despot {
|
|
5
|
-
private recordNote;
|
|
6
|
-
private recordTimer;
|
|
7
|
-
private countdown?;
|
|
8
|
-
private facingMode?;
|
|
9
|
-
private pausedNote?;
|
|
5
|
+
private readonly recordNote;
|
|
6
|
+
private readonly recordTimer;
|
|
7
|
+
private readonly countdown?;
|
|
8
|
+
private readonly facingMode?;
|
|
9
|
+
private readonly pausedNote?;
|
|
10
10
|
private built;
|
|
11
11
|
constructor(visuals: Visuals, options: VideomailClientOptions);
|
|
12
12
|
private startRecording;
|
|
@@ -13,7 +13,7 @@ interface NotifyOptions extends MessageOptions {
|
|
|
13
13
|
removeDimensions?: boolean;
|
|
14
14
|
}
|
|
15
15
|
declare class Notifier extends Despot {
|
|
16
|
-
private visuals;
|
|
16
|
+
private readonly visuals;
|
|
17
17
|
private notifyElement?;
|
|
18
18
|
private messageElement?;
|
|
19
19
|
private explanationElement?;
|
|
@@ -7,8 +7,8 @@ interface StopParams {
|
|
|
7
7
|
switchingFacingMode: any;
|
|
8
8
|
}
|
|
9
9
|
declare class UserMedia extends Despot {
|
|
10
|
-
private recorder;
|
|
11
|
-
private rawVisualUserMedia;
|
|
10
|
+
private readonly recorder;
|
|
11
|
+
private readonly rawVisualUserMedia;
|
|
12
12
|
private paused;
|
|
13
13
|
private recording;
|
|
14
14
|
private audioRecorder?;
|
|
@@ -7,10 +7,10 @@ import Recorder from "./visuals/recorder";
|
|
|
7
7
|
import Replay from "./visuals/replay";
|
|
8
8
|
declare class Visuals extends Despot {
|
|
9
9
|
private readonly container;
|
|
10
|
-
private replay;
|
|
11
|
-
private recorder;
|
|
12
|
-
private recorderInsides;
|
|
13
|
-
private notifier;
|
|
10
|
+
private readonly replay;
|
|
11
|
+
private readonly recorder;
|
|
12
|
+
private readonly recorderInsides;
|
|
13
|
+
private readonly notifier;
|
|
14
14
|
private visualsElement?;
|
|
15
15
|
private built;
|
|
16
16
|
constructor(container: any, options: VideomailClientOptions);
|