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
happydev829 committed Sep 7, 2015
1 parent c635ca0 commit 186672f
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 186672f

Please sign in to comment.