diff options
author | Sam Potts <sam@potts.es> | 2018-05-26 13:55:22 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 13:55:22 +1000 |
commit | f0be913dc384c5a229af70b69711ab246226c1a3 (patch) | |
tree | 1919f9f0ead11712f3a94eeed2e5b6da0130c8f9 /src/js/controls.js | |
parent | c41bb657ac490d032f2992845d21a457a7faedf1 (diff) | |
parent | cd51788b980a7bc7b5caaf2d595d2077be4138f5 (diff) | |
download | plyr-f0be913dc384c5a229af70b69711ab246226c1a3.tar.lz plyr-f0be913dc384c5a229af70b69711ab246226c1a3.tar.xz plyr-f0be913dc384c5a229af70b69711ab246226c1a3.zip |
Merge pull request #975 from sampotts/develop
v3.3.8
Diffstat (limited to 'src/js/controls.js')
-rw-r--r-- | src/js/controls.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/js/controls.js b/src/js/controls.js index 3f720925..c76bd66b 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -481,6 +481,7 @@ const controls = { // Video playing case 'timeupdate': case 'seeking': + case 'seeked': value = utils.getPercentage(this.currentTime, this.duration); // Set seek range value only if it's a 'natural' time event @@ -601,9 +602,10 @@ const controls = { controls.updateProgress.call(this, event); }, - // Show the duration on metadataloaded + // Show the duration on metadataloaded or durationchange events durationUpdate() { - if (!this.supported.ui) { + // Bail if no ui or durationchange event triggered after playing/seek when invertTime is false + if (!this.supported.ui || (!this.config.invertTime && this.currentTime)) { return; } @@ -1163,7 +1165,6 @@ const controls = { const tooltip = utils.createElement( 'span', { - role: 'tooltip', class: this.config.classNames.tooltip, }, '00:00', |