Incident and evidence#
Apple Developer Forums thread 786659 (June 2025): an AVAggregateAssetDownloadTask FairPlay HLS download reports assetCache.isPlayableOffline == true, but first offline AVURLAsset.load(.variants) fails intermittently (~8% reported) with NSURLErrorDomain -1009, AVErrorFailedDependenciesKey=assetProperty_HLSAlternates, and a local .movpkg failing URL. Creating a fresh asset and immediately retrying succeeds offline. Reported on iOS 16–18. Apple engineering requested sysdiagnose; no confirmed cause was given.
First observed failure boundary#
Downloaded .movpkg → AVURLAsset → load(.variants)
↑ first observed failure:
assetProperty_HLSAlternates
→ AVPlayerItem.status → FairPlay protected playback
A file:// failing URL does not prove an outbound network request. The reported failure precedes confirmed DRM key processing; attributing it to the KSM or CKC would be speculative.
Competing hypotheses (unverified)#
- Transient local package/alternate-metadata initialization.
- Selected alternate audio or variant not materialized consistently.
- Property loader attempting an unavailable offline dependency.
- Concurrent first-use asset loading or download-finalization race.
- Content-key lifecycle issue (less directly supported by current failure boundary).
Decisive investigation#
Capture failing first attempt and successful retry with the same package, monotonic timestamps, complete NSError chains, AVPlayerItem.errorLog, CFNetwork diagnostics, content-key delegate lifecycle, and sysdiagnose. Compare: load(.variants) versus minimal media-selection properties; immediate versus delayed first access; serialized versus concurrent loads; audio-selection combinations; fresh versus reused asset; clear versus FairPlay controls. Change one variable at a time.
Client-side mitigation to validate#
Do not require optional .variants introspection before starting offline playback if the product can use minimal downloaded media-selection metadata. On a transient failure, a single bounded fresh-asset retry with telemetry is reasonable to test; do not hide persistent failures.
Conclusion: offline HLS alternates property load intermittently fails; internal root cause unverified. This is a source-backed investigation plan, not a native-device reproduction.
References: original case, AVAssetCache, AVContentKeySession.