videomail-client 11.0.8 → 11.1.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 +438 -446
- package/dist/esm/index.js +304 -311
- package/dist/umd/index.js +176 -184
- package/package.json +10 -10
package/dist/umd/index.js
CHANGED
|
@@ -5,159 +5,6 @@
|
|
|
5
5
|
else root["VideomailClient"] = factory();
|
|
6
6
|
})(globalThis, ()=>(()=>{
|
|
7
7
|
var __webpack_modules__ = {
|
|
8
|
-
"./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(module1, __webpack_exports__, __webpack_require__) {
|
|
9
|
-
"use strict";
|
|
10
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
11
|
-
A: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
12
|
-
});
|
|
13
|
-
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");
|
|
14
|
-
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__);
|
|
15
|
-
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");
|
|
16
|
-
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__);
|
|
17
|
-
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());
|
|
18
|
-
___CSS_LOADER_EXPORT___.push([
|
|
19
|
-
module1.id,
|
|
20
|
-
`@keyframes blink {
|
|
21
|
-
0% {
|
|
22
|
-
opacity: .9;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
35% {
|
|
26
|
-
opacity: .9;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
50% {
|
|
30
|
-
opacity: .1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
85% {
|
|
34
|
-
opacity: .1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
100% {
|
|
38
|
-
opacity: .9;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.videomail .visuals {
|
|
43
|
-
position: relative;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.videomail .visuals video.replay {
|
|
47
|
-
width: 100%;
|
|
48
|
-
height: 100%;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint {
|
|
52
|
-
height: auto;
|
|
53
|
-
margin: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .paused, .videomail .facingMode, .videomail noscript {
|
|
57
|
-
z-index: 100;
|
|
58
|
-
position: absolute;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint, .videomail noscript {
|
|
62
|
-
font-weight: bold;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.videomail .countdown, .videomail .paused, .videomail noscript {
|
|
66
|
-
width: 100%;
|
|
67
|
-
top: 50%;
|
|
68
|
-
transform: translateY(-50%);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.videomail .pausedHeader, .videomail .pausedHint, .videomail .countdown {
|
|
72
|
-
text-align: center;
|
|
73
|
-
letter-spacing: 4px;
|
|
74
|
-
text-shadow: -2px 0 #fff, 0 2px #fff, 2px 0 #fff, 0 -2px #fff;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.videomail .pausedHeader, .videomail .countdown {
|
|
78
|
-
opacity: .9;
|
|
79
|
-
font-size: 460%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.videomail .pausedHint {
|
|
83
|
-
font-size: 150%;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.videomail .facingMode {
|
|
87
|
-
color: #f5f5f5e6;
|
|
88
|
-
z-index: 10;
|
|
89
|
-
background: #1e1e1e80;
|
|
90
|
-
border: none;
|
|
91
|
-
outline: none;
|
|
92
|
-
padding: .1em .3em;
|
|
93
|
-
font-family: monospace;
|
|
94
|
-
font-size: 1.2em;
|
|
95
|
-
transition: all .2s;
|
|
96
|
-
bottom: .6em;
|
|
97
|
-
right: .7em;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.videomail .facingMode:hover {
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
background: #323232b3;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.videomail .recordTimer, .videomail .recordNote {
|
|
106
|
-
color: #00d814;
|
|
107
|
-
opacity: .9;
|
|
108
|
-
background: #0a0a0acc;
|
|
109
|
-
padding: .3em .4em;
|
|
110
|
-
font-family: monospace;
|
|
111
|
-
transition: all 1s;
|
|
112
|
-
right: .7em;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.videomail .recordTimer.near, .videomail .recordNote.near {
|
|
116
|
-
color: #eb9369;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.videomail .recordTimer.nigh, .videomail .recordNote.nigh {
|
|
120
|
-
color: #ea4b2a;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.videomail .recordTimer {
|
|
124
|
-
top: .7em;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.videomail .recordNote {
|
|
128
|
-
top: 3.6em;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.videomail .recordNote:before {
|
|
132
|
-
content: "REC";
|
|
133
|
-
animation: 1s infinite blink;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.videomail .notifier {
|
|
137
|
-
box-sizing: border-box;
|
|
138
|
-
overflow: hidden;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.videomail .radioGroup {
|
|
142
|
-
display: block;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.videomail .radioGroup label {
|
|
146
|
-
cursor: pointer;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.videomail video {
|
|
150
|
-
margin-bottom: 0;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.videomail video.userMedia {
|
|
154
|
-
background-color: #3232321a;
|
|
155
|
-
}
|
|
156
|
-
`,
|
|
157
|
-
""
|
|
158
|
-
]);
|
|
159
|
-
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
160
|
-
},
|
|
161
8
|
"./node_modules/animitter/index.js": function(module1, exports1, __webpack_require__) {
|
|
162
9
|
var EventEmitter = __webpack_require__("./node_modules/events/events.js").EventEmitter, inherits = __webpack_require__("./node_modules/inherits/inherits_browser.js"), raf = __webpack_require__("./node_modules/raf/index.js"), methods;
|
|
163
10
|
var defaultRAFObject = {
|
|
@@ -10430,7 +10277,6 @@
|
|
|
10430
10277
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10431
10278
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
10432
10279
|
var module1 = __webpack_module_cache__[moduleId] = {
|
|
10433
|
-
id: moduleId,
|
|
10434
10280
|
exports: {}
|
|
10435
10281
|
};
|
|
10436
10282
|
__webpack_modules__[moduleId].call(module1.exports, module1, module1.exports, __webpack_require__);
|
|
@@ -10648,7 +10494,7 @@
|
|
|
10648
10494
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10649
10495
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10650
10496
|
var package_namespaceObject = {
|
|
10651
|
-
rE: "11.0
|
|
10497
|
+
rE: "11.1.0"
|
|
10652
10498
|
};
|
|
10653
10499
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10654
10500
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -13784,18 +13630,13 @@
|
|
|
13784
13630
|
NAME,
|
|
13785
13631
|
VERSION
|
|
13786
13632
|
]);
|
|
13787
|
-
var VideoType_VideoType = /*#__PURE__*/ function(VideoType) {
|
|
13788
|
-
VideoType["WebM"] = "webm";
|
|
13789
|
-
VideoType["MP4"] = "mp4";
|
|
13790
|
-
return VideoType;
|
|
13791
|
-
}({});
|
|
13792
13633
|
function canPlayType_canPlayType(video, type) {
|
|
13793
13634
|
const canPlayType = video.canPlayType(`video/${type}`);
|
|
13794
13635
|
if ("" === canPlayType) return false;
|
|
13795
13636
|
return canPlayType;
|
|
13796
13637
|
}
|
|
13797
13638
|
const media_canPlayType = canPlayType_canPlayType;
|
|
13798
|
-
const FALLBACK_VIDEO_TYPE =
|
|
13639
|
+
const FALLBACK_VIDEO_TYPE = VideoType.MP4;
|
|
13799
13640
|
class Browser {
|
|
13800
13641
|
options;
|
|
13801
13642
|
result;
|
|
@@ -13842,10 +13683,10 @@
|
|
|
13842
13683
|
}
|
|
13843
13684
|
getVideoType(video) {
|
|
13844
13685
|
if (!this.videoType) {
|
|
13845
|
-
if (media_canPlayType(video,
|
|
13846
|
-
else if (media_canPlayType(video,
|
|
13686
|
+
if (media_canPlayType(video, VideoType.MP4)) this.videoType = VideoType.MP4;
|
|
13687
|
+
else if (media_canPlayType(video, VideoType.WebM)) this.videoType = VideoType.WebM;
|
|
13847
13688
|
}
|
|
13848
|
-
if (this.videoType !==
|
|
13689
|
+
if (this.videoType !== VideoType.WebM && this.videoType !== VideoType.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
13849
13690
|
if ("" === this.videoType.trim()) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
13850
13691
|
return this.videoType;
|
|
13851
13692
|
}
|
|
@@ -13961,7 +13802,7 @@
|
|
|
13961
13802
|
screen.width,
|
|
13962
13803
|
screen.height,
|
|
13963
13804
|
screen.colorDepth
|
|
13964
|
-
].join("
|
|
13805
|
+
].join("×");
|
|
13965
13806
|
if (screen.orientation) this.orientation = screen.orientation.type;
|
|
13966
13807
|
this.err = errData?.err;
|
|
13967
13808
|
const stackTarget = errData?.cause ?? errData?.err;
|
|
@@ -14831,7 +14672,7 @@
|
|
|
14831
14672
|
}
|
|
14832
14673
|
};
|
|
14833
14674
|
const src_options = options_options;
|
|
14834
|
-
class
|
|
14675
|
+
class CollectLogger_CollectLogger {
|
|
14835
14676
|
browser;
|
|
14836
14677
|
logger;
|
|
14837
14678
|
stack = [];
|
|
@@ -14870,7 +14711,7 @@
|
|
|
14870
14711
|
return this.stack;
|
|
14871
14712
|
}
|
|
14872
14713
|
}
|
|
14873
|
-
const
|
|
14714
|
+
const CollectLogger = CollectLogger_CollectLogger;
|
|
14874
14715
|
var process = __webpack_require__("./node_modules/process/browser.js");
|
|
14875
14716
|
function isTest() {
|
|
14876
14717
|
return "test" === process.env.ENVIRON;
|
|
@@ -14882,7 +14723,7 @@
|
|
|
14882
14723
|
return source;
|
|
14883
14724
|
}
|
|
14884
14725
|
});
|
|
14885
|
-
const collectLogger = new
|
|
14726
|
+
const collectLogger = new CollectLogger(newOptions);
|
|
14886
14727
|
newOptions.logger = collectLogger;
|
|
14887
14728
|
if (util_isTest()) newOptions.verbose = false;
|
|
14888
14729
|
return newOptions;
|
|
@@ -14900,15 +14741,161 @@
|
|
|
14900
14741
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
14901
14742
|
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
14902
14743
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
14903
|
-
var
|
|
14744
|
+
var noSourceMaps = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
14745
|
+
var noSourceMaps_default = /*#__PURE__*/ __webpack_require__.n(noSourceMaps);
|
|
14746
|
+
var api = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
14747
|
+
var api_default = /*#__PURE__*/ __webpack_require__.n(api);
|
|
14748
|
+
var ___CSS_LOADER_EXPORT___ = api_default()(noSourceMaps_default());
|
|
14749
|
+
___CSS_LOADER_EXPORT___.push([
|
|
14750
|
+
module.id,
|
|
14751
|
+
`@keyframes blink {
|
|
14752
|
+
0% {
|
|
14753
|
+
opacity: .9;
|
|
14754
|
+
}
|
|
14755
|
+
|
|
14756
|
+
35% {
|
|
14757
|
+
opacity: .9;
|
|
14758
|
+
}
|
|
14759
|
+
|
|
14760
|
+
50% {
|
|
14761
|
+
opacity: .1;
|
|
14762
|
+
}
|
|
14763
|
+
|
|
14764
|
+
85% {
|
|
14765
|
+
opacity: .1;
|
|
14766
|
+
}
|
|
14767
|
+
|
|
14768
|
+
100% {
|
|
14769
|
+
opacity: .9;
|
|
14770
|
+
}
|
|
14771
|
+
}
|
|
14772
|
+
|
|
14773
|
+
.videomail .visuals {
|
|
14774
|
+
position: relative;
|
|
14775
|
+
}
|
|
14776
|
+
|
|
14777
|
+
.videomail .visuals video.replay {
|
|
14778
|
+
width: 100%;
|
|
14779
|
+
height: 100%;
|
|
14780
|
+
}
|
|
14781
|
+
|
|
14782
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint {
|
|
14783
|
+
height: auto;
|
|
14784
|
+
margin: 0;
|
|
14785
|
+
}
|
|
14786
|
+
|
|
14787
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .paused, .videomail .facingMode, .videomail noscript {
|
|
14788
|
+
z-index: 100;
|
|
14789
|
+
position: absolute;
|
|
14790
|
+
}
|
|
14791
|
+
|
|
14792
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint, .videomail noscript {
|
|
14793
|
+
font-weight: bold;
|
|
14794
|
+
}
|
|
14795
|
+
|
|
14796
|
+
.videomail .countdown, .videomail .paused, .videomail noscript {
|
|
14797
|
+
width: 100%;
|
|
14798
|
+
top: 50%;
|
|
14799
|
+
transform: translateY(-50%);
|
|
14800
|
+
}
|
|
14801
|
+
|
|
14802
|
+
.videomail .pausedHeader, .videomail .pausedHint, .videomail .countdown {
|
|
14803
|
+
text-align: center;
|
|
14804
|
+
letter-spacing: 4px;
|
|
14805
|
+
text-shadow: -2px 0 #fff, 0 2px #fff, 2px 0 #fff, 0 -2px #fff;
|
|
14806
|
+
}
|
|
14807
|
+
|
|
14808
|
+
.videomail .pausedHeader, .videomail .countdown {
|
|
14809
|
+
opacity: .9;
|
|
14810
|
+
font-size: 460%;
|
|
14811
|
+
}
|
|
14812
|
+
|
|
14813
|
+
.videomail .pausedHint {
|
|
14814
|
+
font-size: 150%;
|
|
14815
|
+
}
|
|
14816
|
+
|
|
14817
|
+
.videomail .facingMode {
|
|
14818
|
+
color: #f5f5f5e6;
|
|
14819
|
+
z-index: 10;
|
|
14820
|
+
background: #1e1e1e80;
|
|
14821
|
+
border: none;
|
|
14822
|
+
outline: none;
|
|
14823
|
+
padding: .1em .3em;
|
|
14824
|
+
font-family: monospace;
|
|
14825
|
+
font-size: 1.2em;
|
|
14826
|
+
transition: all .2s;
|
|
14827
|
+
bottom: .6em;
|
|
14828
|
+
right: .7em;
|
|
14829
|
+
}
|
|
14830
|
+
|
|
14831
|
+
.videomail .facingMode:hover {
|
|
14832
|
+
cursor: pointer;
|
|
14833
|
+
background: #323232b3;
|
|
14834
|
+
}
|
|
14835
|
+
|
|
14836
|
+
.videomail .recordTimer, .videomail .recordNote {
|
|
14837
|
+
color: #00d814;
|
|
14838
|
+
opacity: .9;
|
|
14839
|
+
background: #0a0a0acc;
|
|
14840
|
+
padding: .3em .4em;
|
|
14841
|
+
font-family: monospace;
|
|
14842
|
+
transition: all 1s;
|
|
14843
|
+
right: .7em;
|
|
14844
|
+
}
|
|
14845
|
+
|
|
14846
|
+
.videomail .recordTimer.near, .videomail .recordNote.near {
|
|
14847
|
+
color: #eb9369;
|
|
14848
|
+
}
|
|
14849
|
+
|
|
14850
|
+
.videomail .recordTimer.nigh, .videomail .recordNote.nigh {
|
|
14851
|
+
color: #ea4b2a;
|
|
14852
|
+
}
|
|
14853
|
+
|
|
14854
|
+
.videomail .recordTimer {
|
|
14855
|
+
top: .7em;
|
|
14856
|
+
}
|
|
14857
|
+
|
|
14858
|
+
.videomail .recordNote {
|
|
14859
|
+
top: 3.6em;
|
|
14860
|
+
}
|
|
14861
|
+
|
|
14862
|
+
.videomail .recordNote:before {
|
|
14863
|
+
content: "REC";
|
|
14864
|
+
animation: 1s infinite blink;
|
|
14865
|
+
}
|
|
14866
|
+
|
|
14867
|
+
.videomail .notifier {
|
|
14868
|
+
box-sizing: border-box;
|
|
14869
|
+
overflow: hidden;
|
|
14870
|
+
}
|
|
14871
|
+
|
|
14872
|
+
.videomail .radioGroup {
|
|
14873
|
+
display: block;
|
|
14874
|
+
}
|
|
14875
|
+
|
|
14876
|
+
.videomail .radioGroup label {
|
|
14877
|
+
cursor: pointer;
|
|
14878
|
+
}
|
|
14879
|
+
|
|
14880
|
+
.videomail video {
|
|
14881
|
+
margin-bottom: 0;
|
|
14882
|
+
}
|
|
14883
|
+
|
|
14884
|
+
.videomail video.userMedia {
|
|
14885
|
+
background-color: #3232321a;
|
|
14886
|
+
}
|
|
14887
|
+
`,
|
|
14888
|
+
""
|
|
14889
|
+
]);
|
|
14890
|
+
const main = ___CSS_LOADER_EXPORT___;
|
|
14904
14891
|
var main_options = {};
|
|
14905
14892
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
14906
14893
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
14907
14894
|
main_options.insert = insertBySelector_default().bind(null, "head");
|
|
14908
14895
|
main_options.domAPI = styleDomAPI_default();
|
|
14909
14896
|
main_options.insertStyleElement = insertStyleElement_default();
|
|
14910
|
-
injectStylesIntoStyleTag_default()(main
|
|
14911
|
-
main
|
|
14897
|
+
injectStylesIntoStyleTag_default()(main, main_options);
|
|
14898
|
+
main && main.locals && main.locals;
|
|
14912
14899
|
var document_visibility = __webpack_require__("./node_modules/document-visibility/index.js");
|
|
14913
14900
|
var document_visibility_default = /*#__PURE__*/ __webpack_require__.n(document_visibility);
|
|
14914
14901
|
function limitHeight(height, options, calledFrom) {
|
|
@@ -15459,7 +15446,7 @@
|
|
|
15459
15446
|
else {
|
|
15460
15447
|
this.facingModeElement = document.createElement("button");
|
|
15461
15448
|
this.facingModeElement.classList.add("facingMode");
|
|
15462
|
-
this.facingModeElement.innerHTML = "
|
|
15449
|
+
this.facingModeElement.innerHTML = "⤾";
|
|
15463
15450
|
this.facingModeElement.onclick = (e)=>{
|
|
15464
15451
|
e?.preventDefault();
|
|
15465
15452
|
try {
|
|
@@ -15806,17 +15793,17 @@
|
|
|
15806
15793
|
this.options.logger.debug("Limit reached");
|
|
15807
15794
|
lead += `${this.options.text.limitReached}.<br/>`;
|
|
15808
15795
|
}
|
|
15809
|
-
lead += `${this.options.text.sending}
|
|
15796
|
+
lead += `${this.options.text.sending} …`;
|
|
15810
15797
|
this.notify(lead, void 0, {
|
|
15811
15798
|
stillWait: true,
|
|
15812
15799
|
entertain: this.options.notifier.entertain
|
|
15813
15800
|
});
|
|
15814
15801
|
}
|
|
15815
15802
|
onConnecting() {
|
|
15816
|
-
this.notify("Connecting
|
|
15803
|
+
this.notify("Connecting …");
|
|
15817
15804
|
}
|
|
15818
15805
|
onLoadingUserMedia() {
|
|
15819
|
-
this.notify("Loading webcam
|
|
15806
|
+
this.notify("Loading webcam …");
|
|
15820
15807
|
}
|
|
15821
15808
|
onProgress(frameProgress, sampleProgress) {
|
|
15822
15809
|
let overallProgress;
|
|
@@ -15828,7 +15815,7 @@
|
|
|
15828
15815
|
}
|
|
15829
15816
|
onBeginVideoEncoding() {
|
|
15830
15817
|
this.visuals.beginWaiting();
|
|
15831
|
-
const lead = `${this.options.text.encoding}
|
|
15818
|
+
const lead = `${this.options.text.encoding} …`;
|
|
15832
15819
|
this.notify(lead, void 0, {
|
|
15833
15820
|
stillWait: true,
|
|
15834
15821
|
entertain: this.options.notifier.entertain
|
|
@@ -15860,7 +15847,7 @@
|
|
|
15860
15847
|
this.onBeginVideoEncoding();
|
|
15861
15848
|
});
|
|
15862
15849
|
this.on("UNLOADING", ()=>{
|
|
15863
|
-
this.notify("Unloading
|
|
15850
|
+
this.notify("Unloading …");
|
|
15864
15851
|
});
|
|
15865
15852
|
this.on("DISCONNECTED", ()=>{
|
|
15866
15853
|
this.notify("Disconnected");
|
|
@@ -16257,7 +16244,7 @@
|
|
|
16257
16244
|
"volumechange"
|
|
16258
16245
|
];
|
|
16259
16246
|
const mediaEvents = MEDIA_EVENTS;
|
|
16260
|
-
const EVENT_ASCII = "
|
|
16247
|
+
const EVENT_ASCII = "|—O—|";
|
|
16261
16248
|
class UserMedia extends util_Despot {
|
|
16262
16249
|
recorder;
|
|
16263
16250
|
rawVisualUserMedia;
|
|
@@ -16547,7 +16534,7 @@
|
|
|
16547
16534
|
}
|
|
16548
16535
|
const visuals_userMedia = UserMedia;
|
|
16549
16536
|
var Buffer = __webpack_require__("./node_modules/buffer/index.js")["Buffer"];
|
|
16550
|
-
const PIPE_SYMBOL = "
|
|
16537
|
+
const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
|
|
16551
16538
|
class Recorder extends util_Despot {
|
|
16552
16539
|
visuals;
|
|
16553
16540
|
replay;
|
|
@@ -17047,7 +17034,7 @@
|
|
|
17047
17034
|
}, 0);
|
|
17048
17035
|
}
|
|
17049
17036
|
} else {
|
|
17050
|
-
this.options.logger.debug(`Reconnecting for the command ${command}
|
|
17037
|
+
this.options.logger.debug(`Reconnecting for the command ${command} …`);
|
|
17051
17038
|
this.initSocket(()=>{
|
|
17052
17039
|
this.writeCommand(command, args);
|
|
17053
17040
|
cb?.();
|
|
@@ -17683,10 +17670,10 @@
|
|
|
17683
17670
|
}
|
|
17684
17671
|
}
|
|
17685
17672
|
setMp4Source(src, bustCache) {
|
|
17686
|
-
this.setVideoSource(
|
|
17673
|
+
this.setVideoSource(VideoType.MP4, src, bustCache);
|
|
17687
17674
|
}
|
|
17688
17675
|
setWebMSource(src, bustCache) {
|
|
17689
|
-
this.setVideoSource(
|
|
17676
|
+
this.setVideoSource(VideoType.WebM, src, bustCache);
|
|
17690
17677
|
}
|
|
17691
17678
|
getVideoType() {
|
|
17692
17679
|
if (!this.replayElement) return;
|
|
@@ -18322,7 +18309,7 @@
|
|
|
18322
18309
|
const name = invalidInput.getAttribute("name");
|
|
18323
18310
|
valid = false;
|
|
18324
18311
|
if (name) {
|
|
18325
|
-
whyInvalid = `Input "${name}" seems wrong
|
|
18312
|
+
whyInvalid = `Input "${name}" seems wrong 🤔`;
|
|
18326
18313
|
invalidData = {
|
|
18327
18314
|
[name]: invalidInput.getAttribute("value")
|
|
18328
18315
|
};
|
|
@@ -18330,7 +18317,7 @@
|
|
|
18330
18317
|
} else if (!this.areVisualsHidden() && !visualsValid) {
|
|
18331
18318
|
if (this.buttonsAreReady() || this.isRecording() || this.isPaused() || this.isCountingDown()) {
|
|
18332
18319
|
valid = false;
|
|
18333
|
-
whyInvalid = "Don't forget to record a video
|
|
18320
|
+
whyInvalid = "Don't forget to record a video 😉";
|
|
18334
18321
|
invalidData = {
|
|
18335
18322
|
key: void 0
|
|
18336
18323
|
};
|
|
@@ -18574,6 +18561,11 @@
|
|
|
18574
18561
|
}
|
|
18575
18562
|
}
|
|
18576
18563
|
const src_client = VideomailClient;
|
|
18564
|
+
var VideoType_VideoType = /*#__PURE__*/ function(VideoType1) {
|
|
18565
|
+
VideoType1["WebM"] = "webm";
|
|
18566
|
+
VideoType1["MP4"] = "mp4";
|
|
18567
|
+
return VideoType1;
|
|
18568
|
+
}({});
|
|
18577
18569
|
})();
|
|
18578
18570
|
return __webpack_exports__;
|
|
18579
18571
|
})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -74,32 +74,32 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@chromatic-com/storybook": "4.1.1",
|
|
77
|
-
"@eslint/config-inspector": "1.
|
|
77
|
+
"@eslint/config-inspector": "1.3.0",
|
|
78
78
|
"@eslint/js": "9.35.0",
|
|
79
79
|
"@rsbuild/plugin-node-polyfill": "1.4.2",
|
|
80
80
|
"@rsbuild/plugin-stylus": "1.2.0",
|
|
81
81
|
"@rsdoctor/rspack-plugin": "1.2.3",
|
|
82
|
-
"@rslib/core": "0.
|
|
82
|
+
"@rslib/core": "0.14.0",
|
|
83
83
|
"@storybook/addon-a11y": "9.1.3",
|
|
84
84
|
"@storybook/addon-docs": "9.1.3",
|
|
85
85
|
"@storybook/addon-links": "9.1.3",
|
|
86
86
|
"@storybook/html": "9.1.3",
|
|
87
87
|
"@tsconfig/node22": "22.0.2",
|
|
88
|
-
"@tsconfig/strictest": "2.0.
|
|
88
|
+
"@tsconfig/strictest": "2.0.6",
|
|
89
89
|
"@types/defined": "1.0.2",
|
|
90
|
-
"@types/node": "22.
|
|
90
|
+
"@types/node": "22.18.6",
|
|
91
91
|
"@types/superagent": "8.1.9",
|
|
92
92
|
"@types/ua-parser-js": "0.7.39",
|
|
93
|
-
"@vitest/eslint-plugin": "1.3.
|
|
93
|
+
"@vitest/eslint-plugin": "1.3.12",
|
|
94
94
|
"audit-ci": "7.1.0",
|
|
95
95
|
"chromatic": "13.1.4",
|
|
96
96
|
"cross-env": "10.0.0",
|
|
97
97
|
"eslint": "9.35.0",
|
|
98
98
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
99
99
|
"eslint-plugin-de-morgan": "1.3.1",
|
|
100
|
-
"eslint-plugin-depend": "1.
|
|
100
|
+
"eslint-plugin-depend": "1.3.1",
|
|
101
101
|
"eslint-plugin-import-x": "4.16.1",
|
|
102
|
-
"eslint-plugin-package-json": "0.56.
|
|
102
|
+
"eslint-plugin-package-json": "0.56.3",
|
|
103
103
|
"eslint-plugin-promise": "7.2.1",
|
|
104
104
|
"eslint-plugin-regexp": "2.10.0",
|
|
105
105
|
"eslint-plugin-security": "3.0.1",
|
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
"prettier-plugin-curly": "0.3.2",
|
|
114
114
|
"prettier-plugin-packagejson": "2.5.19",
|
|
115
115
|
"prettier-plugin-sh": "0.18.0",
|
|
116
|
-
"release-it": "19.0.
|
|
116
|
+
"release-it": "19.0.5",
|
|
117
117
|
"storybook": "9.1.3",
|
|
118
118
|
"storybook-html-rsbuild": "2.0.4",
|
|
119
|
-
"type-fest": "5.0.
|
|
119
|
+
"type-fest": "5.0.1",
|
|
120
120
|
"typescript": "5.9.2",
|
|
121
121
|
"typescript-eslint": "8.41.0",
|
|
122
122
|
"vitest": "3.2.4"
|