Skip to content

Commit

Permalink
Set the duration display on loadedmetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-bbay committed May 19, 2015
1 parent b2311c7 commit 03b1a01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/control-bar/time-controls/duration-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 03b1a01

Please sign in to comment.