Airplay related classes for AVFoundation
And for MacOS 10.15 we add AVRoutePickerViewControlMBS control to show the standard control from Apple to select the output device:
If you have an Airplay enabled device, it should show up in the popup menu.
Our example project uses AVRouteDetectorMBS class to detect if multiple routes are available. If that is true, we show the AVRoutePickerViewControlMBS control and let the user pick the destination for the current video player.