I created a video player using AVPlayer and AVPlayerViewController. I set the " allowsExternalPlayback
" property to true, and the " usesExternalPlaybackWhileExternalScreenIsActive
" property to true. But still, I do not get Airplay Icon in the player controls.
player = AVPlayer(URL: url!) player!.allowsExternalPlayback = true player?.usesExternalPlaybackWhileExternalScreenIsActive = true
I am running my application on ios 9.2.
source share