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
webmiraclepro committed Sep 6, 2015
1 parent eb337e4 commit 5119021
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 5119021

Please sign in to comment.