videomail-client 9.2.4 → 9.2.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/package.json
CHANGED
|
@@ -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.5",
|
|
17271
17271
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
17272
17272
|
"keywords": [
|
|
17273
17273
|
"webcam",
|
|
@@ -17471,9 +17471,6 @@ var VideomailClient = function VideomailClient(options) {
|
|
|
17471
17471
|
if (!container.isBuilt()) {
|
|
17472
17472
|
container.build(true, replayParentElement);
|
|
17473
17473
|
}
|
|
17474
|
-
if (!container.hasElement()) {
|
|
17475
|
-
throw new Error("Unable to replay video without a container nor parent element.");
|
|
17476
|
-
}
|
|
17477
17474
|
if (videomail) {
|
|
17478
17475
|
videomail = container.addPlayerDimensions(videomail);
|
|
17479
17476
|
}
|
|
@@ -19887,7 +19884,7 @@ var Container = function Container(options) {
|
|
|
19887
19884
|
function correctDimensions() {
|
|
19888
19885
|
if (options.video.stretch) {
|
|
19889
19886
|
removeDimensions();
|
|
19890
|
-
} else {
|
|
19887
|
+
} else if (containerElement) {
|
|
19891
19888
|
var width = visuals.getRecorderWidth(true);
|
|
19892
19889
|
if (width < 1) {
|
|
19893
19890
|
throw _videomailError.default.create("Recorder width cannot be less than 1!", options);
|
|
@@ -19897,6 +19894,9 @@ var Container = function Container(options) {
|
|
|
19897
19894
|
}
|
|
19898
19895
|
}
|
|
19899
19896
|
function removeDimensions() {
|
|
19897
|
+
if (!containerElement) {
|
|
19898
|
+
return;
|
|
19899
|
+
}
|
|
19900
19900
|
containerElement.style.width = "auto";
|
|
19901
19901
|
}
|
|
19902
19902
|
function unloadChildren(e) {
|