Airplay 2 and device-local video files

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?

If it used to work on a previous version of iOS, but no longer works on the latest version of iOS, please file a bug report using the feedback assistant (and post the feedback ID here). Thanks.

Did you ever solve this?

Airplay 2 and device-local video files
 
 
Q