Skip to content

Commit

Permalink
Pause FilePlayer when stopping
Browse files Browse the repository at this point in the history
Otherwise the audio will carry on playing in some browsers
Fixes #78
  • Loading branch information
cookpete committed Jun 23, 2016
1 parent 90b083a commit d345f03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class FilePlayer extends Base {
this.player.pause()
}
stop () {
this.pause()
this.player.removeAttribute('src')
}
seekTo (fraction) {
Expand Down

0 comments on commit d345f03

Please sign in to comment.