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
+1
View File
@@ -7,6 +7,7 @@
* Safer check for active caption (thanks @Antonio-Laguna) * Safer check for active caption (thanks @Antonio-Laguna)
* Add custom property fallback (thanks @friday) * Add custom property fallback (thanks @friday)
* Fixed bug for captions with no srclang and labels and improved logic (fixes #875) * Fixed bug for captions with no srclang and labels and improved logic (fixes #875)
* Fix for `playing` false positive
## v3.1.0 ## v3.1.0
+1
View File
@@ -4020,6 +4020,7 @@ singleton.Client = Client;
tooltips: { tooltips: {
controls: true controls: true
}, },
settings: ['captions'],
/* controls: [ /* controls: [
'play-large', 'play-large',
'restart', 'restart',
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -57,6 +57,7 @@ import Raven from 'raven-js';
tooltips: { tooltips: {
controls: true, controls: true,
}, },
settings: ['captions'],
/* controls: [ /* controls: [
'play-large', 'play-large',
'restart', 'restart',
+1 -1
View File
@@ -7358,7 +7358,7 @@ var Plyr = function () {
}, { }, {
key: 'playing', key: 'playing',
get: function get$$1() { get: function get$$1() {
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));
} }
/** /**
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -13292,7 +13292,7 @@ var Plyr = function () {
}, { }, {
key: 'playing', key: 'playing',
get: function get() { get: function get() {
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));
} }
/** /**
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -369,7 +369,7 @@ class Plyr {
* Get playing state * Get playing state
*/ */
get playing() { 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));
} }
/** /**