I can't get the 'ready' event to be called. Anyone else is having this issue?
const onSpotifyLoaded = controller => {
controller.addListener('ready', () => {
console.log("Player is Ready")
})
}
window.SpotifyIFrameAPI.createController(playerEl.current, {uri: 'xxx'}, onSpotifyLoaded)
window.onSpotifyIframeApiReady = IFrameAPI => {
window.SpotifyIFrameAPI = IFrameAPI
}