Not sure when this started, but with iOS/iPadOS/tvOS 15, I cannot AirPlay a video file stored on my iOS/iPadOS device to an Apple TV using AVPlayer.
Local audio files work fine and remote video files work fine. It's only local video files that fail to play. The error I get via a NSNotification.Name.AVPlayerItemFailedToPlayToEndTime
notification is AVErrorExternalPlaybackNotSupportedForAsset
.
This is easily reproduced using the 'Integrating AirPlay for Long-Form Video Apps' sample app found here by adding a video file to the project and playing that rather that the m3u8 streams the sample uses by default: https://developer.apple.com/documentation/avfoundation/media_playback_and_selection/integrating_airplay_for_long-form_video_apps
Happens with tvOS 15 & 15.1
Anyone else experiencing this issue?