Skip to content

Commit

Permalink
Set internal isPlaying flag to false on ended
Browse files Browse the repository at this point in the history
  • Loading branch information
Webmaster1116 committed Nov 10, 2017
1 parent 0c4173a commit 8a95e20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ export default class Player extends Component {
if (activePlayer.loopOnEnded && loop) {
this.seekTo(0)
}
if (!loop) {
this.isPlaying = false
}
onEnded()
}
onDurationCheck = () => {
Expand Down

0 comments on commit 8a95e20

Please sign in to comment.