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

@ -7,6 +7,7 @@
* Safer check for active caption (thanks @Antonio-Laguna)
* Add custom property fallback (thanks @friday)
* Fixed bug for captions with no srclang and labels and improved logic (fixes #875)
* Fix for `playing` false positive
## v3.1.0

1
demo/dist/demo.js vendored
View File

@ -4020,6 +4020,7 @@ singleton.Client = Client;
tooltips: {
controls: true
},
settings: ['captions'],
/* controls: [
'play-large',
'restart',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -57,6 +57,7 @@ import Raven from 'raven-js';
tooltips: {
controls: true,
},
settings: ['captions'],
/* controls: [
'play-large',
'restart',

2
dist/plyr.js vendored
View File

@ -7358,7 +7358,7 @@ var Plyr = function () {
}, {
key: 'playing',
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));
}
/**

2
dist/plyr.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/plyr.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -13292,7 +13292,7 @@ var Plyr = function () {
}, {
key: 'playing',
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));
}
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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