I'm trying to figure out if an event gets called whenever I'm streaming with the music kit player and I reload the page. I'm using Chrome and when I reload the page the streaming music stops and says the browser prevented playing without user interaction.
Events I have listeners for include:
- mediaPlaybackError
- nowPlayingItemDidChange
- playbackStateDidChange
- queueIsReady
- queueItemsDidChange
- mediaCanPlay
Each of these are associated with a console message so I can track when they get called. This is what appears in my console when I start a playlist:
I thought that the "mediaPlaybackError" would be called but it wasn't, and no other errors seem to pop up. The documentation here: https://developer.apple.com/documentation/musickitjs/musickit/events doesn't really explain much about the events.