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:
parent
7eff3aca48
commit
02cfee72d8
@ -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))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user