Hello,
We are investigating an issue with offline HLS playback using AVQueuePlayer and would like to know whether anyone else has experienced similar behavior.
Issue
We download HLS content using AVAssetDownloadURLSession and play it offline using AVQueuePlayer.
For some titles (but not all), after several consecutive episode transitions, the player unexpectedly attempts a network request while the next episode is already queued and the current episode has approximately 60 seconds remaining.
If the device is offline, playback fails with:
NSURLErrorDomain Code = -1009
and the next episode never starts.
Characteristics
The issue only affects certain titles.
It is fully reproducible for affected titles.
For example, if it occurs between Episodes 5 and 6 after starting playback from Episode 1, it always occurs at the same point when replaying from Episode 1.
If playback starts directly from Episode 5, the issue does not occur.
The issue only occurs when using AVQueuePlayer.
Replacing the current item (removeAllItems() + replaceCurrentItem(with:)) avoids the issue, although this is unfortunately not a viable workaround because it breaks our Picture in Picture episode transition behavior.
We compared the downloaded packages (boot.xml, Master Playlist, and Stream configuration) between affected and unaffected titles, but so far have not identified any meaningful structural differences that explain the behavior.
Questions
Has anyone experienced similar behavior with:
offline HLS (.movpkg)
AVQueuePlayer
unexpected network requests during queued playback
NSURLErrorDomain Code=-1009 even though the content is downloaded for offline playback
If anyone has seen a similar issue or has any information, observations, or suggestions for further investigation, I would greatly appreciate hearing from you.
For reference, I have already submitted this issue through Feedback Assistant.
Feedback ID: FB23487817
Thank you in advance for any information.
0
0
15