PlayerKit
PlayerKit copied to clipboard
AppleMusicPlayer does not report change of nowPlayingItem and just loops
I am using QueuePlayer to play Apple Music items. I see in that you only ever have 1 track here:
func preparePlayer() { guard let track = track, let id = track.appleMusicID, track.isValid else { return } if #available(iOS 10.1, *) { let descriptor = MPMusicPlayerStoreQueueDescriptor(storeIDs: [id]) descriptor.startItemID = id musicPlayerController.setQueue(with: descriptor)
Then the underlying musicPlayerController instance does not report when the item had stop or changed which does not surface to the QueuePlayer either.