Setting ShuffleMode for ApplicationMusicPlayer no longer works in iOS 16.1 & 16.2

Hi Apple Engineers,

I am reporting an issue in iOS 16.1 and iOS 16.2 beta 3 where setting the shuffleMode for ApplicationMusicPlayer is no longer working

Here is the code:

let player = ApplicationMusicPlayer.shared
let tracks = [Tracks]

player.queue = ApplicationMusicPlayer.Queue(for: tracks)
player.state.shuffleMode = .songs

Task.init {
   try await player.play()
}

I tested the same code on iOS 15 and it works as expected.

Here is the related ticket: FB11840279

Still happening in the latest release 16.2 :/

Setting ShuffleMode for ApplicationMusicPlayer no longer works in iOS 16.1 & 16.2
 
 
Q