AVAssetResourceLoaderDelegate and AirPlay on 4th generation Apple TV

Hello,


My streaming video app needs to serve foreign language content but due to issues beyond my control, HLS manifests declaring the subtitle tracks along with the audio and video ones are unavailable. I've been able to successfully add VTT subtitles by modifying the master manifest with the help of AVAssetResourceLoaderDelegate and this works locally (i.e. code running on the device loading the videos from a CDN) on both iOS and tvOS, as well as over AirPlay to a 3rd generation Apple TV. However, AirPlay to a 4th generation Apple TV (actually the same one I used to validate tvOS playback) results in an immediate error. Is this expected behaviour, considering it works locally as well as with an older device? I didn't bother segmenting the subtitles in my proof-of-concept code and I see AVPlayer complains about too-large-segments, could that be a fatal error in this scenario?


Regards!