randonly goes to an intractable "waiting" state during playback.

In my web app (shelf.fm), i allow users to play their various albums by pressing a custom play button, resulting in a call to
Code Block
window.MusicKit.getInstance().player.play();

However, When i use my own app, i see that playback consistently freezes midsong, several songs into any given album.

This freeze is accompanied by an event being issued from the apple music api, to wit:
Code Block
playbackStateDidChange: {oldState:1,state:8}

In this case, 1 means playing and 8 means waiting.

And it remains frozen, no matter how many times I pause, stop or press play again.

Help! I can't ship it like this.