Skip to content

Commit

Permalink
Fix FilePlayer seekTo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-luther committed Nov 22, 2024
1 parent 411fae6 commit 3db1f48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export default class FilePlayer extends Base {
this.player.removeAttribute('src')
}
seekTo (fraction) {
if (fraction === 1) {
this.pause()
}
super.seekTo(fraction)
this.player.currentTime = this.getDuration() * fraction
}
Expand Down

0 comments on commit 3db1f48

Please sign in to comment.