I want to cast a radio stream through AirPlay (to an AppleTV). I've researched a lot related to this topic, but I found the documentation really poor.
This is the Apple documentation for AirPlay 2: https://developer.apple.com/documentation/avfoundation/airplay_2/getting_airplay_2_into_your_app
I found out that AVRoutePickerView
is only available after iOS 11. Below iOS 11, MPVolumeView
needs to be used.
I've checked the iOS version, integrated these classes, the cast is working, buy not how I want it
A black screen appears on the TV while playing and I can't control the volume of the cast.
Can anyone show me how to integrate AirPlay into an iOS app simple and clearly? Any help would be appreciated.
false
on your player instance: developer.apple.com/documentation/avfoundation/avplayer/… – Bozeman