Skip to content

Commit

Permalink
Fix: emit final timeupdate on audio end (#3970)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Dec 25, 2024
1 parent 52b4ce4 commit 1cd0192
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wavesurfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ class WaveSurfer extends Player<WaveSurferEvents> {
}),

this.onMediaEvent('ended', () => {
this.emit('timeupdate', this.getDuration())
this.emit('finish')
}),

Expand Down

0 comments on commit 1cd0192

Please sign in to comment.