How to Stream Full Audio on your Website from Spotify and Apple Music

Introducing Stream

Image for post
Image for post
Image for post
Image for post
togglePlay() {
// Apple
if (this.type == 'apple') {
if (this.playing) {
this.apple.music.pause()
} else {
this.apple.music.play()
}
}
// Spotify
if (this.type == 'spotify') {
this.spotify.player.togglePlay()
}
}

Written by

I develop websites for rock 'n' roll bands and get paid in sex and drugs. Previously Silva Artist Management, SoundCloud, and Songkick. Currently: Available

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store