diff --git a/CHANGELOG.md b/CHANGELOG.md index d48a3bc31..26f83905e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG ## HEAD (Unreleased) * @tjenkinson Added background-color to vjs-poster to remove transparent borders around scaled poster image ([view](https://github.com/videojs/video.js/pull/2138)) * @bc-bbay fixed a bug where the player would try to autoplay when there was no source ([view](https://github.com/videojs/video.js/pull/2127)) +* @bc-bbay update time display on loadedmetadata ([view](https://github.com/videojs/video.js/pull/2151)) -------------------- diff --git a/src/js/control-bar/time-display.js b/src/js/control-bar/time-display.js index 053211d43..94051c223 100644 --- a/src/js/control-bar/time-display.js +++ b/src/js/control-bar/time-display.js @@ -51,6 +51,7 @@ vjs.DurationDisplay = vjs.Component.extend({ // 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); } });