AVRoutePickerView player property

Hi,

I am using AVRoutePickerView on macOS via NSViewRepresentable. I am setting the player property with a AVPlayer object. But when I choose via AVRoutePicker one of my HomePods, AVPlayer is ignoring the setting and is still using my Mac as output.

Strangely if I left the player property nil and then choosing one of my HomePods via AVRoutePickerView it is working, but only for one AVPlayer, other AVPlayer will be muted.

How can I force AVRoutePickerView to use its AVPlayer property?

I am testing this with macOS 12.4.

Thank you Oleg

AVRoutePickerView player property
 
 
Q