Prevent durationchange events from showing time when invertTime is false
This commit is contained in:
parent
aa8fc313a9
commit
121093ae71
5
src/js/controls.js
vendored
5
src/js/controls.js
vendored
@ -602,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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user