Comparing version 1.5.1 to 1.5.2
@@ -348,2 +348,3 @@ 'use strict'; | ||
_this.slideshow = false; | ||
_this.startPaused = false; | ||
@@ -711,3 +712,7 @@ _this.playlistLength = 0; | ||
_this2.emit("media.canplay"); | ||
mediaEl.play(); | ||
if (!_this2.startPaused) { | ||
mediaEl.play(); | ||
} | ||
if (_this2._seeking) { | ||
@@ -759,2 +764,6 @@ _this2._seeking = false; | ||
if (_this3.startPaused) { | ||
_this3._slideshowTimer.pause(); | ||
} | ||
_this3._slideshowTimer.on("pause", onPause); | ||
@@ -929,2 +938,4 @@ } | ||
this.startPaused = options.startPaused; | ||
this.parentEl = this._setParent(options.el); | ||
@@ -931,0 +942,0 @@ |
@@ -33,2 +33,3 @@ /* eslint max-statements:0 */ | ||
this.slideshow = false; | ||
this.startPaused = false; | ||
@@ -326,3 +327,7 @@ this.playlistLength = 0; | ||
this.emit("media.canplay"); | ||
mediaEl.play(); | ||
if (!this.startPaused) { | ||
mediaEl.play(); | ||
} | ||
if (this._seeking) { | ||
@@ -372,2 +377,6 @@ this._seeking = false; | ||
if (this.startPaused) { | ||
this._slideshowTimer.pause(); | ||
} | ||
this._slideshowTimer.on("pause", onPause); | ||
@@ -538,2 +547,4 @@ } | ||
this.startPaused = options.startPaused; | ||
this.parentEl = this._setParent(options.el); | ||
@@ -540,0 +551,0 @@ |
{ | ||
"name": "drive-in", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Core library for React Drive-In", | ||
@@ -5,0 +5,0 @@ "main": "dist/drive-in.js", |
Sorry, the diff of this file is not supported yet
49142
1609