iOS 26 HLS: investigate CoreMedia -15628 after segment redirects (root cause unverified)

GitHub source

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

Case study: iOS 26 HLS playback failure, CoreMediaErrorDomain -15628#

Source: https://developer.apple.com/forums/thread/801549 (opened September 2025; reviewed November 3, 2026).

Reported observations — not independently reproduced#

The original report describes HLS MPEG-TS playback via React Native 0.69 / react-native-video / AVPlayer. Playback initially succeeds on iOS 26, then intermittently fails after seconds or minutes, especially on unstable networks. The reporter observed HTTP 307 redirects for some segment requests before a terminal CoreMediaErrorDomain -15628. Other participants report similar symptoms on iOS/tvOS 26; one reports a preceding -12889. None of these reports proves that redirects, network conditions, or a specific OS change caused the failure.

Current status: Root cause unverified. There is no published byte-identical, instrumented iOS 18 vs iOS 26 reproduction in the reviewed thread.

First causal boundary to investigate#

HLS playlist → segment URI selection → HTTP redirect chain
→ final segment response (status/headers/body/timing)
→ demux/sample timeline → buffer admission → playback state
→ CoreMedia terminal error

The first observed terminal failure is -15628, not necessarily the first causal failure. A 307 is a valid temporary redirect in HTTP and is not intrinsically a playback error. The decisive question is whether the redirected request returns valid, timely, byte-correct media and whether AVPlayer accepts that media.

Evidence ledger#

Claim Evidence Confidence
Failures reported on iOS 26 Original forum post High that reported; no independent reproduction
Some segment requests receive HTTP 307 Original forum post Reported, unverified packet-level trace
-12889 sometimes precedes -15628 Separate forum participant Anecdotal correlation
307 causes -15628 No controlled evidence Unsupported
iOS 26 regression in CoreMedia No controlled reproduction Hypothesis

Controlled client-side investigation#

  1. Capture exact master/media playlists and the selected segment URI, sequence number, and rendition. Retain raw bytes, SHA-256, and EXT-X-DISCONTINUITY context.
  2. For each segment, correlate monotonic timestamp, request URL, every redirect hop, final URL, response status, Content-Type, Content-Length, Content-Range, actual bytes, TTFB, and transfer completion. Distinguish a redirect from a subsequent 403/404/5xx, timeout, partial body, or malformed range response.
  3. Record AVPlayerItem.status, error, errorLog(), accessLog(), timeControlStatus, reasonForWaitingToPlay, loadedTimeRanges, currentTime, and buffering transitions. Save underlying NSError chains and sysdiagnose near failure.
  4. Reproduce on iOS 18 and 26 with the same media bytes and equivalent devices/network shaping. Compare direct 200 vs 307→200 (same final bytes), fast vs delayed response, redirect to same vs different host, and stable vs unstable network. Change one variable per trial; run repeated trials.
  5. If redirect chains differ, inspect cookies, authorization, signed query parameters, host changes, cache behavior, and redirect loops without assuming AVPlayer uses URLSession delegates for its internal media fetches.
  6. If media bytes and transport are identical, examine TS PAT/PMT, continuity counters, PCR/PTS/DTS, keyframe boundaries, and playlist discontinuity signaling. Compare the first differing player state and OS version.
  7. Only if encrypted content reproduces differently, separately trace EXT-X-KEY → SKD identity → AVContentKeySession → SPC/KSM/CKC → key usable, using authorized metadata without exposing key material.

Client-only mitigation candidates to validate: bounded playback recovery with fresh AVPlayerItem after terminal failure; preserve playhead and avoid retry storms; optionally preflight the application-controlled URL before player construction. None is a proven fix. Redirect elimination, CDN behavior, or origin changes are server-side proposals, not client-only remedies.

Falsification criteria#

  • If 307→200 and direct 200 with identical final bytes and timing have indistinguishable failure rates, redirect causality is weakened.
  • If the first failed transaction is a final 403/404/5xx or timeout, diagnose that event rather than the preceding 307.
  • If failure reproduces only on iOS 26 with byte-identical media and transport, OS-specific handling becomes a stronger hypothesis, not automatically a proven regression.
  • Declare root cause only after repeatable reproduction, first divergent transition, controlled reversal, and falsification of major alternatives.

Reusable insight#

A terminal CoreMedia error is a symptom classification, not a causal explanation. Correlate the earliest unsuccessful HTTP/media-state transition before assigning blame to an HTTP redirect or an OS regression.

References#

Evidence classification: Public incident analysis and proposed tests only. No native-device experiments, symbolicated trace analysis, or confirmed fix are claimed.