AVPlayer DVR seek can request _HLS_msn without _HLS_part: valid segment-level reload, fallback unproven

GitHub source

Inferred. This page is generated from GitHub Issue #32; GitHub remains the canonical authoring and discussion source.

Source and evidence status#

Apple Developer Forums: https://developer.apple.com/forums/thread/808257 (November–December 2025).

A developer observed that AVPlayer sometimes requests an LL-HLS Media Playlist during DVR seeking with _HLS_msn but without _HLS_part. An accepted community answer suggests LL-HLS server noncompliance may cause a fallback to regular latency. That is a plausible explanation, not a verified native AVPlayer decision rule.

Evidence level: Protocol contract confirmed; local HTTP response semantics reproduced; original AVPlayer root cause unresolved.

Protocol contract: MSN-only is valid#

HLS 2nd Edition draft -22 (1 May 2026), §6.2.5.2:
https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-22#section-6.2.5.2

Blocking reload Required server response condition
?_HLS_msn=M Defer until complete Media Segment M or later is in the playlist (or return an error).
?_HLS_msn=M&_HLS_part=N Defer until Partial Segment N of M or later is in the playlist (or return an error).
?_HLS_part=N alone Invalid; server MUST return a bad request.

The server must advertise EXT-X-SERVER-CONTROL:CAN-BLOCK-RELOAD=YES for blocking reload. Section 6.3.8 recommends using both directives when partials exist, but that is a SHOULD, not an unconditional MUST. Missing _HLS_part is not inherently a protocol violation or proof of fallback.

Apple explains that a client may fall back to regular-latency HLS if a required low-latency server configuration is unsupported:
https://developer.apple.com/documentation/http-live-streaming/enabling-low-latency-http-live-streaming-hls

Executed deterministic HTTP experiment#

A local Python ThreadingHTTPServer published part 0 of sequence 100 at 180 ms, and the complete parent segment 100 at 480 ms. Concurrent requests gave:

Request HTTP Observed completion
No delivery directive 200 14.4 ms
_HLS_part=0 alone 400 14.7 ms
_HLS_msn=100&_HLS_part=0 200 181.3 ms
_HLS_msn=100 200 484.2 ms

Six assertions passed. The ~303 ms difference demonstrates the server-side release predicate for this synthetic schedule, not AVPlayer behavior. No native Apple device, decoder, FairPlay license server, or playable CMAF media was involved.

Competing hypotheses#

  1. Segment-granularity DVR acquisition: AVPlayer deliberately requests a parent segment when seeking behind live. Test with compliant origin and clean error log; correlate seek position with request granularity.
  2. Low-latency fallback: earlier server noncompliance causes the omission. Correlate the first error-log event with the first MSN-only request and repeat with corrected manifests.
  3. Rendition transition: a switch to another variant/audio playlist changes the reload request. Track playlist URI, rendition reports, and segment/part availability.
  4. CDN query rewrite: _HLS_part exists at client egress but is stripped or omitted downstream. Compare request URLs at client, CDN, shield, and origin.
  5. Playlist state: a stale/delta-updated playlist, EXT-X-ENDLIST, or changed server-control attributes alter reload behavior. Preserve consecutive full responses and Age headers.

Verification procedure#

Use physical iOS/tvOS devices and a monotonic timeline:

seek requested / completed
→ selected rendition and accepted playlist snapshot
→ CAN-BLOCK-RELOAD / PART-TARGET / PART-HOLD-BACK
→ outgoing _HLS_msn / _HLS_part request
→ CDN / origin request and response
→ AVPlayerItem error-log events
→ subsequent part/segment downloads
→ playback and live-edge distance

For AVPlayerItem, use fetchErrorLog(completionHandler:) where available (older API: errorLog()); retain event uri, errorDomain, errorStatusCode, errorComment, and timestamps. Never assign unsupported meanings to undocumented CoreMedia codes.

Compare (A) live edge, (B) DVR past, (C) deliberately malformed LL-HLS, (D) origin versus CDN, (E) rendition changes, and (F) return from DVR to live. Change one variable per trial and repeat.

For protected HLS, separately trace EXT-X-KEY → KID → AVContentKeyRequest → SPC → KSM → CKC → usable key. The absence of _HLS_part alone does not implicate FairPlay.

Engineering guideline#

An MSN-only LL-HLS reload is a request for a complete segment, not an automatic diagnosis of LL-mode fallback. The server must implement the specified wait semantics. Investigate the first divergence among accepted playlist state, seek target, player-item errors, and per-hop request URLs before assigning cause.

References#

Unresolved: The exact internal AVPlayer rule for omitting _HLS_part in the original DVR-seek scenario.