Airplay swiftUI

So we have a media player in our SwiftUI app, and all the buttons go to the media function to play, pause , rewind etc.

One feature people are requesting is the ability to airplay to other devices. I know they can do this via the Lock Screen and the notification bar, but wondering what function do I need to add to the media-player function to allow me to add a button to my swiftUI.

I am wondering what function code do I need to add to my core mediaplayer.swift file that I can link a button too.

Watched +1

Airplay swiftUI
 
 
Q