1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

@bc-bbay made the duration display update itself on loadedmetadata. closes #2169

This commit is contained in:
bc-bbay 2015-06-05 10:40:32 -07:00 committed by heff
parent 7eff3aca48
commit 02cfee72d8
2 changed files with 2 additions and 0 deletions

View File

@ -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))
--------------------

View File

@ -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() {