Skip to content

Commit

Permalink
Stop soundcloud track before playing another
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Sep 7, 2015
1 parent f7b6735 commit 61bc61e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/players/SoundCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default class SoundCloud extends Base {
this.player.play()
return
}
this.stop()
this.getSDK().then(SC => {
this.getSongData(url).then(data => {
let image = data.artwork_url || data.user.avatar_url
Expand Down

0 comments on commit 61bc61e

Please sign in to comment.