AVAssetResourceLoader backed AVURLAsset playback fails only via AirPlay
问题 For reasons irrelevant to my question I have to implement an AVPlayer playing back AVURLAssets using a custom AVAssetResourceLoader . In general my implementation works well, but when attempting external playback via AirPlay (not mirroring): self.player.allowsExternalPlayback = YES; self.player.usesExternalPlaybackWhileExternalScreenIsActive = YES; The playback fails with an error message on the AppleTV and an error message posted via AVPlayerItemFailedToPlayToEndTimeNotification . I am able