AudioSession output questions

Hi, I am developing a POC music player app. I use AVAudioSession; I have implemented background music and integration with command center.

I am focusing now on volume. I am able to receive volume changes, with systemVolumeDidChange. About setting the volume, I am able to set it using MPVolumeView, but not for remote wifi audio device (for example, HomePods).

I have the following open points:

  • the native Podcast app is able to control volume when connected to HomePods. How does it do?
  • the native Podcast app has icons for AirPods, HomePods, even Car bluetooth. Are there icon propeties for audioSession.currentRoute.outputs? Or what should I use instead?

Here an example of what I would like to achieve: