I am using MPMusicPlayerController to stream from Apple Music. When I set the currentPlaybackTime while the player is playing, everything works as intended. The player jumps to the given time and plays from there. If I pause the player first though, then set the currentPlaybackTime, start the player with play() again, currentPlaybackTime is reset to zero.
EDIT: My question is: How can I achieve seeking to a certain point while the player is paused (and then resume from there)? Am I missing something? Is it a bug?
let player = MPMusicPlayerController.applicationMusicPlayer()
player.setQueueWithStoreIDs(["some id"])
player.play()
player.currentPlaybackTime = 120
debugPrint(player.currentPlaybackTime) //prints 120
let player = MPMusicPlayerController.applicationMusicPlayer()
player.setQueueWithStoreIDs(["some id"])
player.play()
player.pause()
player.currentPlaybackTime = 120
player.play()
debugPrint(player.currentPlaybackTime) //prints 0