Play Song at specific index of MPMediaItemCollection in Swift
问题 I try to make my own Musicplayer with Swift. I need to jump to a specific song/index of my MPMediaItemCollection and start to play it but i can only find methods like skipToNextItem() and skipToPreviousItem(). Is there any other way to do that than with a loop? let player = MPMusicPlayerController.systemMusicPlayer() player.setQueueWithItemCollection(mediaCollection) player.play() 回答1: According to the documentation, we use the nowPlayingItem property. To specify that playback should begin at