videomail-client 9.2.11 → 9.2.12

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.11",
3
+ "version": "9.2.12",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -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.11",
17270
+ "version": "9.2.12",
17271
17271
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17272
17272
  "keywords": [
17273
17273
  "webcam",
@@ -20112,7 +20112,7 @@ var Container = function Container(options) {
20112
20112
  if (typeof replayParentElement === "string") {
20113
20113
  replayParentElement = document.getElementById(replayParentElement);
20114
20114
  }
20115
- if ((_replayParentElement = replayParentElement) !== null && _replayParentElement !== void 0 && _replayParentElement.classList.contains(options.selectors.containerCssClass)) {
20115
+ if ((_replayParentElement = replayParentElement) !== null && _replayParentElement !== void 0 && _replayParentElement.classList.contains(options.selectors.containerClass)) {
20116
20116
  containerElement = replayParentElement;
20117
20117
  }
20118
20118
  }
@@ -20990,7 +20990,7 @@ var Visuals = function Visuals(container, options) {
20990
20990
  function correctDimensions() {
20991
20991
  if (options.video.stretch) {
20992
20992
  removeDimensions();
20993
- } else if (visualsElement) {
20993
+ } else if (visualsElement && recorder) {
20994
20994
  visualsElement.style.width = "".concat(self.getRecorderWidth(true), "px");
20995
20995
  visualsElement.style.height = "".concat(self.getRecorderHeight(true), "px");
20996
20996
  }
@@ -23320,6 +23320,9 @@ var Replay = function Replay(parentElement, options) {
23320
23320
  built = false;
23321
23321
  };
23322
23322
  this.getVideoSource = function (type) {
23323
+ if (!replayElement) {
23324
+ return;
23325
+ }
23323
23326
  var sources = replayElement.getElementsByTagName("source");
23324
23327
  var l = sources && sources.length;
23325
23328
  var videoType = "video/".concat(type);