From 03b1a0165fe3142df42f1d625ea38add0a06d725 Mon Sep 17 00:00:00 2001 From: bc-bbay Date: Tue, 19 May 2015 12:12:18 -0400 Subject: [PATCH] Set the duration display on loadedmetadata --- src/js/control-bar/time-controls/duration-display.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/control-bar/time-controls/duration-display.js b/src/js/control-bar/time-controls/duration-display.js index f4a11fa4e6..708bb6df19 100644 --- a/src/js/control-bar/time-controls/duration-display.js +++ b/src/js/control-bar/time-controls/duration-display.js @@ -19,6 +19,7 @@ class DurationDisplay extends Component { // Once the order of durationchange and this.player_.duration() being set is figured out, // this can be updated. this.on(player, 'timeupdate', this.updateContent); + this.on(player, 'loadedmetadata', this.updateContent); } createEl() {