P.S: Even the .pause() works when the player is already playing. But if I call SystemMusicPlayer.shared.pause() then SystemMusicPlayer.shared.play(), it will only pause and won't play after.
I am sure my question is pretty boneheaded, but here is basic assumption: Calling the .play() method will resume playback.
@JoeKun here is the ticket: FB9621750. I am able to insert a song into the queue, skiptoNextEntry and so on. But simple unable to start the player. Here is the error in the console:
[SDKPlayback] prepareToPlay failed [no target descriptor]
@JoeKun That's disappointing! Hope you consider it for the future, it severely limits developer's ability to make innovative apps through MusicKit.
But as always, you are a life saver! Thanks for your prompt reply.
Hi @JoeKun
How does one use the built-in support for pagination in MusicItemCollection. It has the string for the next batch, but does this mean that one would have to perform a new MusicDataRequest from the Apple Music endpoint? Or is there a better way to do this directly using some MusicKit magic?
P.S: Even the .pause() works when the player is already playing. But if I call SystemMusicPlayer.shared.pause() then SystemMusicPlayer.shared.play(), it will only pause and won't play after.
I am sure my question is pretty boneheaded, but here is basic assumption: Calling the .play() method will resume playback.
@JoeKun here is the ticket: FB9621750. I am able to insert a song into the queue, skiptoNextEntry and so on. But simple unable to start the player. Here is the error in the console:
[SDKPlayback] prepareToPlay failed [no target descriptor]
@JoeKun That's disappointing! Hope you consider it for the future, it severely limits developer's ability to make innovative apps through MusicKit.
But as always, you are a life saver! Thanks for your prompt reply.
Hi @JoeKun
How does one use the built-in support for pagination in MusicItemCollection. It has the string for the next batch, but does this mean that one would have to perform a new MusicDataRequest from the Apple Music endpoint? Or is there a better way to do this directly using some MusicKit magic?