Skip to content

Commit

Permalink
@bc-bbay made the duration display update itself on loadedmetadata. c…
Browse files Browse the repository at this point in the history
…loses #2169
  • Loading branch information
bc-bbay authored and heff committed Jun 5, 2015
1 parent 7eff3ac commit 02cfee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ CHANGELOG
* @mmcc moved the fonts into their own repo ([view](https://github.com/videojs/video.js/pull/2223))
* @mmcc deprecated the options() function and removed internal uses ([view](https://github.com/videojs/video.js/pull/2229))
* @carpasse enhanced events to allow passing a second data argument ([view](https://github.com/videojs/video.js/pull/2163))
* @bc-bbay made the duration display update itself on loadedmetadata ([view](https://github.com/videojs/video.js/pull/2169))

--------------------

Expand Down
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 02cfee7

Please sign in to comment.