Fix for playing false positive (fixes #898)

This commit is contained in:
Sam Potts
2018-04-17 22:52:46 +10:00
parent 46fe3eecff
commit 7f079e0ec3
15 changed files with 15 additions and 12 deletions

View File

@ -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));
}
/**