Source#
Apple Developer Forums — “CoreMediaErrorDomain -15628 playback failure in iOS 26 (React Native / AVPlayer, HLS stream)”, still publicly indexed in 2026:
https://developer.apple.com/forums/tags/media-player
Reported behavior:
iOS 18 and earlier → stream works
iOS 26 → playback initially works, then intermittently fails
slow / unstable network → failure more likely
some HLS segment requests → HTTP 307 redirect
AVPlayer → CoreMediaErrorDomain -15628
Authoritative Apple references:
- HLS Authoring Specification for Apple Devices: https://developer.apple.com/documentation/http-live-streaming/hls-authoring-specification-for-apple-devices/
- TN2436 — Debugging HTTP Live Streaming: https://developer.apple.com/library/archive/technotes/tn2436/_index.html
- HLS streaming resources / validation tools: https://developer.apple.com/streaming/
Problem#
It is tempting to classify undocumented CoreMediaErrorDomain -15628 as an iOS 26 transport regression and add player retries around that number.
However, Apple's current HLS Authoring Specification contains a much stronger upstream finding:
Media requests MUST NOT use HTTP redirects, except for ad content used for dynamic ad selection.
The reported stream issues HTTP 307 responses for media-segment requests. Therefore the presentation already violates Apple's HLS authoring requirements before any private meaning is assigned to -15628.
The useful question is not:
What does -15628 mean?
It is:
Does playback still fail when the exact same HLS media is delivered with direct 200 responses and no media-resource redirects?
Evidence level#
DOCUMENTED#
Apple's HLS Authoring Specification, rule 8.18, says media requests MUST NOT use HTTP redirects, with an exception for ad content to permit dynamic ad selection.
Apple TN2436 recommends validating the stream against Apple's HLS authoring requirements and correlating AVPlayer failures with HLS/network diagnostics rather than relying only on a terminal player error.
Apple provides mediastreamvalidator specifically to validate HLS streams and servers before treating client playback behavior as the primary defect.
OBSERVED#
The public forum report states that:
- the same application/stream worked on older iOS releases;
- playback can begin normally on iOS 26;
- failure occurs later and is more common under poor network conditions;
- network traces show HTTP 307 redirects on some segment requests;
- the eventual player failure contains
CoreMediaErrorDomain -15628.
IMPLEMENTATION EVIDENCE#
-15628 is an undocumented CoreMedia status observed on the failing path. No reviewed public Apple contract gives this number a stable semantic meaning.
It may identify an internal resource/timeline failure, but that must be demonstrated from the producer condition rather than inferred from the number.
INFERENCE#
The redirect is a stronger first suspect than the numeric CoreMedia status because it is an independently documented authoring violation in the exact resource path that precedes the failure.
Poor-network correlation can amplify redirect cost and failure probability because each redirect introduces another HTTP transaction/path dependency, but the exact mechanism producing -15628 remains unproven.
UNKNOWN#
- Whether removing the redirects alone eliminates
-15628on the affected iOS 26 build. - Which resource first redirects: media segment, playlist, initialization segment, subtitle, or audio rendition.
- Whether the redirected target changes hostname/CDN/authentication context.
- Whether iOS 26 changed retry/redirect tolerance compared with iOS 18.
- The internal CoreMedia predicate that emits
-15628.
Investigation / Explanation#
Treat the failure as a resource-delivery experiment before treating it as an AVPlayer implementation defect.
Build one monotonic timeline:
playlist reload
→ media URI selected
→ request start
→ HTTP response
→ redirect, if any
→ redirected request
→ final response
→ bytes received
→ AVPlayerItem access/error-log event
→ buffer state
→ CoreMedia -15628
→ AVPlayerItem status
For every HLS request record:
resource type
original URI
HTTP status
Location target (sanitized)
redirect count
final host
final HTTP status
request duration
TTFB
bytes transferred
AVPlayerItem currentTime
buffer state
Do not assume a 307 is harmless because generic HTTP clients normally follow it. Apple's HLS authoring contract is more restrictive than generic HTTP redirect semantics for media requests.
The primary discriminator is a server/CDN A/B where media bytes and playlists remain semantically identical but the HTTP path changes:
A. segment URI → 307 → final media object
B. segment URI → direct 200 media object
If B removes the failure on the same device/network impairment while A reproduces it, redirect-free delivery is the proven containment and the redirect path becomes causally significant.
Only after B still fails should the investigation promote an iOS 26 resource-retry regression as the primary hypothesis.
Separate redirect classes#
Do not aggregate all 3xx responses.
Classify whether the redirect occurs for:
multivariant playlist
media playlist
init segment / EXT-X-MAP
video segment
alternate-audio segment
subtitle segment
ad content
Apple's explicit exception is for ad content used for dynamic ad selection; it is not a blanket exception for ordinary media delivery.
Keep FairPlay separate#
For protected content, record key events independently:
KID
→ AVContentKeyRequest
→ SPC
→ CKC
→ key usable
→ decrypt
A media-segment 307/transport failure is upstream of decryption. Do not change KSM/CKC logic unless content-key state diverges before the resource failure.
Verification matrix#
Use the same encoded media, playlist topology, device, and player implementation:
| Test | Media delivery | Network | Purpose |
|---|---|---|---|
| A | direct 200 | normal | known-good transport control |
| B | 307 → same bytes | normal | isolate redirect |
| C | direct 200 | controlled latency/loss | isolate poor network without redirect |
| D | 307 → same bytes | same impairment as C | test redirect × network interaction |
| E | direct 200 | normal | iOS 18 control |
| F | direct 200 | normal | affected iOS 26 build |
| G | 307 path | normal | iOS 18 control |
| H | 307 path | normal | affected iOS 26 build |
For each run capture:
OS build
resource URL class
HTTP status chain
redirect count
request latency
bytes transferred
AVPlayerItem.status
AVPlayerItem.error + full underlying chain
AVPlayerItem.errorLog()
AVPlayerItem.accessLog()
timeControlStatus
reasonForWaitingToPlay
currentTime progression
buffer-empty / likely-to-keep-up state
Interpretation:
B/D/H fail while A/C/F succeed
→ redirect path is the controlled discriminator
A and B succeed, C and D fail equally
→ network/resource timeout behavior is stronger than redirect
F fails while E succeeds with direct 200
→ an iOS-version regression remains after authoring compliance is restored
H fails but G succeeds, while F succeeds
→ iOS-version-specific handling of the noncompliant redirect path is plausible;
fix authoring first, then report the compatibility regression separately
Also run mediastreamvalidator against the redirect-free endpoint and preserve its output.
Solution / Guideline#
- Remove HTTP redirects from ordinary HLS media-resource delivery. Resolve the final CDN/origin URL before publishing it in the playlist, or configure the delivery path to return the media object directly.
- Treat Apple's HLS Authoring Specification as the first compatibility contract, even when browsers or generic HTTP clients successfully follow the same redirect.
- Validate the redirect-free stream with Apple's HLS tools before attributing the remaining failure to AVPlayer/CoreMedia.
- Record the first failing resource and HTTP status chain; do not react solely to
-15628. - If a fully compliant direct-200 presentation still fails only on iOS 26, preserve that as a separate OS-regression repro with identical media and controlled network conditions.
- Do not encode
-15628as a stable production classifier or trigger unconditional player recreation based only on that private number. - For client recovery, react to supported state (
AVPlayerItem.status == .failed, resource/error logs, stall state) rather than a guessed semantic meaning for an undocumented CoreMedia code.
Reusable engineering rule#
Generic HTTP success does not imply HLS delivery compliance.
Before reverse-engineering a private CoreMedia status, test the transport against the stricter HLS contract:
playlist URI
→ media URI
→ HTTP status chain
→ bytes delivered
→ timeline accepted
→ player state
If an upstream request violates a documented Apple HLS requirement, remove that violation with a one-variable A/B first. Only a failure that survives the compliant control earns promotion to an AVPlayer/CoreMedia regression investigation.
References#
- Apple Developer Forums —
CoreMediaErrorDomain -15628/ iOS 26 HLS report: https://developer.apple.com/forums/tags/media-player - Apple — HLS Authoring Specification for Apple Devices, rule 8.18: https://developer.apple.com/documentation/http-live-streaming/hls-authoring-specification-for-apple-devices/
- Apple TN2436 — Debugging HTTP Live Streaming: https://developer.apple.com/library/archive/technotes/tn2436/_index.html
- Apple HLS portal and Media Streaming Validator tools: https://developer.apple.com/streaming/
- Apple Foundation — HTTP redirect callback semantics (generic HTTP comparison only): https://developer.apple.com/documentation/foundation/urlsessiontaskdelegate/urlsession(_:task:willperformhttpredirection:newrequest:completionhandler:)