Fully implemented the SpotifyController class. A couple things to point out:
The access token needed for the API calls is included directly on the DOM, so I just retrieved it from there for simplicity
The player on the Spotify page doesn't register with the Spotify API until it is interacted with, hence the _preparePlayer and _forceInitializePlayer methods
Other than that, everything should be fairly self explanatory!
Overview
Fully implemented the SpotifyController class. A couple things to point out:
_preparePlayer
and_forceInitializePlayer
methodsOther than that, everything should be fairly self explanatory!