aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-04-17 22:52:46 +1000
committerSam Potts <sam@potts.es>2018-04-17 22:52:46 +1000
commit7f079e0ec3abbc9909807a1d9da60e18099a48f0 (patch)
treef321aaad4aa31de7b1a66bebd191e192a3c2a484 /src
parent46fe3eecff478a80636f538a9f843bb0f21f4802 (diff)
downloadplyr-7f079e0ec3abbc9909807a1d9da60e18099a48f0.tar.lz
plyr-7f079e0ec3abbc9909807a1d9da60e18099a48f0.tar.xz
plyr-7f079e0ec3abbc9909807a1d9da60e18099a48f0.zip
Fix for `playing` false positive (fixes #898)
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 200189b3..3de94143 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -369,7 +369,7 @@ class Plyr {
* Get playing state
*/
get playing() {
- return Boolean(!this.paused && !this.ended && (this.isHTML5 ? this.media.readyState > 2 : true));
+ return Boolean(this.ready && !this.paused && !this.ended && (this.isHTML5 ? this.media.readyState > 2 : true));
}
/**