videomail-client 9.2.6 → 9.2.7

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.6",
3
+ "version": "9.2.7",
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.6",
17270
+ "version": "9.2.7",
17271
17271
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17272
17272
  "keywords": [
17273
17273
  "webcam",
@@ -20988,14 +20988,14 @@ var Visuals = function Visuals(container, options) {
20988
20988
  this.build = function () {
20989
20989
  var playerOnly = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
20990
20990
  var replayParentElement = arguments.length > 1 ? arguments[1] : undefined;
20991
- if (container) {
20991
+ if (container && !playerOnly) {
20992
20992
  visualsElement = container.querySelector(".".concat(options.selectors.visualsClass));
20993
20993
  if (!visualsElement) {
20994
20994
  visualsElement = (0, _hyperscript.default)("div.".concat(options.selectors.visualsClass));
20995
20995
  var buttonsElement = container.querySelector(".".concat(options.selectors.buttonsClass));
20996
20996
 
20997
20997
  /*
20998
- * make sure it's placed before the buttons, but only if it's a child
20998
+ * Make sure it's placed before the buttons, but only if it's a child
20999
20999
  * element of the container = inside the container
21000
21000
  */
21001
21001
  if (buttonsElement && !container.isOutsideElementOf(buttonsElement)) {
@@ -21006,7 +21006,7 @@ var Visuals = function Visuals(container, options) {
21006
21006
  }
21007
21007
 
21008
21008
  /*
21009
- * do not hide visuals element so that apps can give it a predefined
21009
+ * Do not hide visuals element so that apps can give it a predefined
21010
21010
  * width or height through css but hide all children
21011
21011
  */
21012
21012
  visualsElement.classList.add("visuals");