Skip to content

Commit

Permalink
Fix FilePlayer seekTo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
happydev829 committed Apr 27, 2017
1 parent 77d44e2 commit 12802cf
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 12802cf

Please sign in to comment.