diff --git a/src/wavesurfer.ts b/src/wavesurfer.ts index ecc2c4290..31785ae74 100644 --- a/src/wavesurfer.ts +++ b/src/wavesurfer.ts @@ -247,6 +247,7 @@ class WaveSurfer extends Player { }), this.onMediaEvent('ended', () => { + this.emit('timeupdate', this.getDuration()) this.emit('finish') }),