I am using MPVolumeView
to show AirPlay
button. I need to show a custom wallpaper to Apple
TV
through mirroring with audi
Unfortunately, external display associated with AirPlay will only become active (and post appropriate notification) when you enable AirPlay mirroring in control panel. There appears to be no way to enable mirroring programmatically.
MPVolumeView can help user redirect audio to AirPlay speakers, it has nothing to do with display mirroring.