Prevent durationchange events from showing time when invertTime is false

This commit is contained in:
Albin Larsson 2018-05-12 11:54:28 +02:00
parent aa8fc313a9
commit 121093ae71

5
src/js/controls.js vendored
View File

@ -602,9 +602,10 @@ const controls = {
controls.updateProgress.call(this, event); controls.updateProgress.call(this, event);
}, },
// Show the duration on metadataloaded // Show the duration on metadataloaded or durationchange events
durationUpdate() { 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; return;
} }