Local reproduction and solution — 18 November 2026#
Status: Related public MultiKey failures and legacy controls reproduced; original root cause not established.
Source and evidence#
Upstream case · local report and evidence · portable reproduction instructions
Observed results are Reproduced only within the stated seam. Implementation explanations remain Inferred, not Apple Confirmed.
Reconstruct the scene#
The official public Axinom MultiKey audio/video playlists carry distinct SKD references. Test reported Shaka 4.16.6 plus a separate 5.0.4 A/B on Safari 26.3.1.
4.16.6 modern makes two license HTTP200 responses/usable keys but stalls; only one attempted modern cycle is recorded. Legacy completes 30 cycles with 90 HTTP200 license responses and no Shaka errors. In 5.0.4 modern, one license and 3016 are observed, with decoder error before the response; same-version legacy plays.
Solution / guideline#
Explicit legacy Apple Media Keys is a tested conditional workaround for these public controls. Do not claim a permanent missing-audio/video-license patch or a KSM root cause without selected-track/event correlation.
All pinned patches and results
Limits / remaining work#
The original provider’s intermittent failure on the reported versions is not causally reproduced. Local issues34 and48 are the same upstream #9268 case, not independent confirmations.
This update supersedes earlier no-local-run statements below only within the stated scope. Historical source reports are retained; no unresolved issue is closed by this publication.
Earlier investigation and source history
Source and environment#
- Original report (23 October 2025): shaka-project/shaka-player#9268
- Environment: Safari on macOS + Shaka Player, FairPlay-protected HLS with distinct video and audio keys.
- Important scope: This is a Safari/EME/Shaka report, not a native AVPlayer reproduction. The native
AVContentKeySessionpath is a separate diagnostic control.
Problem#
The reporter observed that failed playback attempts (>50% in their environment) generated a license request for only one of two expected encrypted tracks. Playback succeeded when both requests were observed. The player reported Shaka error 3016. The maintainers requested FairPlay certificate and init-data transformation details, but the issue was closed for inactivity on 14 November 2025, not fixed.
Shaka defines 3016 as VIDEO_ERROR: an HTMLMediaElement error wrapper, not a CoreMedia or FairPlay-specific diagnosis.
Evidence level#
Public symptom reported; internal cause unverified. Apple documentation establishes native content-key request semantics, but does not establish the Shaka/EME failure. No reproducible private media, WebKit trace, KSM transaction log, or native device capture was supplied with the public report.
Key-dependency graph#
Selected HLS variant
├─ video media playlist → EXT-X-KEY / SKD video reference
└─ audio rendition → EXT-X-KEY / SKD audio reference
↓
For each required key:
track selection → encrypted/init-data event → key request
→ license HTTP request → CKC response → usable key → decode
Inspect EXT-X-STREAM-INF, EXT-X-MEDIA, the selected audio group, each media playlist's EXT-X-KEY, KEYFORMAT, URI, and fMP4 encryption metadata. SKD URI, application asset ID, and actual KID are not interchangeable without verifying the KSM/packager mapping.
First-divergence decision tree#
| Observed evidence | Next investigation |
|---|---|
| Audio key is signaled but no audio encrypted/init-data event | HLS track selection, manifest/key applicability, browser event generation |
| Audio encrypted event exists but no license POST | Shaka DRM event handler, initDataTransform, request identity, event dispatch |
| Both license POSTs occur, one fails | Transport, KSM authorization, response association |
| Both CKCs returned but one key not usable | EME key status, response processing, key/track mapping |
| Both keys usable but playback fails | Sample encryption, codec/decoder, media timeline |
A missing KSM transaction does not prove KSM rejection. A terminal 3016 does not identify which transition failed.
Synthetic experiment executed — 26 October 2026#
A local Python parser processed a synthetic HLS multivariant playlist with an audio group and distinct video/audio FairPlay EXT-X-KEY URIs. A second stage classified four synthetic, track-correlated event traces.
| Trace | First missing audio stage |
|---|---|
| Both key workflows present | None |
| Only video encrypted event | encrypted_event |
| Audio event, no HTTP license request | license_request |
| Audio license response, no usable key | key_usable |
11 assertions passed. This verifies only the trace-classification logic. The fixtures are metadata-only and not playable media. No Safari, Shaka, native AVPlayer, FairPlay, KSM, or encrypted-sample playback was executed.
Controlled verification#
- Fix macOS/Safari build, Shaka commit, certificate, KSM policy, and content hashes.
- Test encrypted video + clear audio; clear video + encrypted audio; both encrypted with distinct keys; correctly re-authored single-key control.
- Compare Shaka with another Safari player using identical assets and capture
encryptedevents, EME messages, license requests, responses, and key statuses. - Repeat at least 30 trials per configuration for the intermittent failure, randomize order, and report distributions.
- As a separate control, test native
AVContentKeySessionon a physical Apple device and correlateAVContentKeyRequest.identifier,originatingRecipient, request status, delegate callbacks, and KSM transactions. - Only after a deterministic failing/passing pair exists, inspect pinned Shaka/WebKit source and symbolicated framework diagnostics. Cite commit SHA, file, function, and lines; WebKit is not native AVPlayer source.
Competing hypotheses#
- Missing audio encrypted event.
- Shaka event coalescing/dropped dispatch or incorrect init-data transform.
- Key-reference collision or mismatched KSM mapping.
- License response rejection or incorrect association.
- Invalid encrypted-media authoring.
- Decoder error independent of key acquisition.
No root cause or workaround has been verified for the original report.
Engineering guideline#
Treat key-request coverage for the selected audio/video sample dependencies as a first-class startup invariant. Correlate each track from manifest signaling to a usable key. Investigate the first missing transition, not the final 3016 error.
Use authorized content and log only redacted key-reference hashes, transaction IDs, statuses, and timings; never log SPC/CKC bytes, content keys, private certificates, or credentials.