videomail-client 9.2.16 → 9.2.18
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.18",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
},
|
|
125
125
|
"engines": {
|
|
126
126
|
"node": "^20.16.0",
|
|
127
|
-
"npm": "^10.8.
|
|
127
|
+
"npm": "^10.8.1"
|
|
128
128
|
},
|
|
129
129
|
"readmeFilename": "README.md"
|
|
130
130
|
}
|
|
@@ -17267,7 +17267,7 @@ function wrappy (fn, cb) {
|
|
|
17267
17267
|
},{}],116:[function(_dereq_,module,exports){
|
|
17268
17268
|
module.exports={
|
|
17269
17269
|
"name": "videomail-client",
|
|
17270
|
-
"version": "9.2.
|
|
17270
|
+
"version": "9.2.18",
|
|
17271
17271
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
17272
17272
|
"keywords": [
|
|
17273
17273
|
"webcam",
|
|
@@ -17391,7 +17391,7 @@ module.exports={
|
|
|
17391
17391
|
},
|
|
17392
17392
|
"engines": {
|
|
17393
17393
|
"node": "^20.16.0",
|
|
17394
|
-
"npm": "^10.8.
|
|
17394
|
+
"npm": "^10.8.1"
|
|
17395
17395
|
},
|
|
17396
17396
|
"readmeFilename": "README.md"
|
|
17397
17397
|
}
|
|
@@ -19612,6 +19612,8 @@ var Buttons = function Buttons(container, options) {
|
|
|
19612
19612
|
hide(previewButton);
|
|
19613
19613
|
hide(recordAgainButton);
|
|
19614
19614
|
hide(resumeButton);
|
|
19615
|
+
hide(audioOnRadioPair);
|
|
19616
|
+
hide(audioOffRadioPair);
|
|
19615
19617
|
}
|
|
19616
19618
|
function onEnablingAudio() {
|
|
19617
19619
|
debug("Buttons: onEnablingAudio()");
|
|
@@ -19690,6 +19692,10 @@ var Buttons = function Buttons(container, options) {
|
|
|
19690
19692
|
enable(recordButton);
|
|
19691
19693
|
}
|
|
19692
19694
|
}
|
|
19695
|
+
}).on(_events.default.DISCONNECTED, function () {
|
|
19696
|
+
disable(recordButton);
|
|
19697
|
+
disable(audioOnRadioPair);
|
|
19698
|
+
disable(audioOffRadioPair);
|
|
19693
19699
|
}).on(_events.default.ERROR, function (err) {
|
|
19694
19700
|
/*
|
|
19695
19701
|
* since https://github.com/binarykitchen/videomail-client/issues/60
|
|
@@ -19755,6 +19761,8 @@ var Buttons = function Buttons(container, options) {
|
|
|
19755
19761
|
hide(previewButton);
|
|
19756
19762
|
hide(recordAgainButton);
|
|
19757
19763
|
hide(submitButton);
|
|
19764
|
+
hide(audioOnRadioPair);
|
|
19765
|
+
hide(audioOffRadioPair);
|
|
19758
19766
|
}
|
|
19759
19767
|
};
|
|
19760
19768
|
this.show = function () {
|
|
@@ -20256,7 +20264,7 @@ var Container = function Container(options) {
|
|
|
20256
20264
|
// this code needs a good rewrite :(
|
|
20257
20265
|
this.validate = function (event, force) {
|
|
20258
20266
|
var runValidation = true;
|
|
20259
|
-
var valid;
|
|
20267
|
+
var valid = true;
|
|
20260
20268
|
if (!options.enableAutoValidation) {
|
|
20261
20269
|
runValidation = false;
|
|
20262
20270
|
lastValidation = true; // needed so that it can be submitted anyway, see submit()
|
|
@@ -20270,7 +20278,15 @@ var Container = function Container(options) {
|
|
|
20270
20278
|
runValidation = false;
|
|
20271
20279
|
}
|
|
20272
20280
|
if (runValidation) {
|
|
20273
|
-
|
|
20281
|
+
var _event$target;
|
|
20282
|
+
var targetName = event === null || event === void 0 || (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.name;
|
|
20283
|
+
if (targetName) {
|
|
20284
|
+
self.emit(_events.default.VALIDATING, {
|
|
20285
|
+
targetName: targetName
|
|
20286
|
+
});
|
|
20287
|
+
} else {
|
|
20288
|
+
self.emit(_events.default.VALIDATING, event);
|
|
20289
|
+
}
|
|
20274
20290
|
var visualsValid = visuals.validate() && buttons.isRecordAgainButtonEnabled();
|
|
20275
20291
|
var whyInvalid;
|
|
20276
20292
|
var invalidData;
|
|
@@ -22271,7 +22287,7 @@ var Recorder = function Recorder(visuals, replay) {
|
|
|
22271
22287
|
}
|
|
22272
22288
|
});
|
|
22273
22289
|
stream.on("error", function (err) {
|
|
22274
|
-
debug("".concat(PIPE_SYMBOL, "Stream *error* event emitted")
|
|
22290
|
+
debug("".concat(PIPE_SYMBOL, "Stream *error* event emitted: ").concat(err.message));
|
|
22275
22291
|
connecting = connected = false;
|
|
22276
22292
|
var videomailError;
|
|
22277
22293
|
if (browser.isIOS()) {
|