I'm implementing shouldWaitForLoadingOfRequestedResource
handler for AVPlayer
/AVURLAsset
HLS videos and found a weird behavior in tvOS.
As I see it could request the same resources multiple times, including "root" manifest, second-level manifests and segments (and I'm talking not about multiple quality switches, it's requesting exactly the same resources).
In the same time, each request are served with my code well enough – video is playing good. Also, exactly the same code is working fine in iOS – no duplicated requests.
In which cases AVURLAsset
/AVAssetResourceLoader
could request the same resources multiple times in tvOS?