Local reproduction and solution — 18 November 2026#
Status: Original buffering-state omission not reproduced on the public Mac controls.
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#
Create a sliding live playlist from the public FairPlay VOD fixture without changing encrypted media bytes. Use reported Shaka 5.1.0 on Safari 26.3.1.
The actual native run reports live=true, progresses during 30 s and emits buffering=false. Forcing the same encrypted MPEG-TS fixture through MSE fails loading with 4040, HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED. This demonstrates this public asset’s routing/capability; it does not prove the original provider’s mode.
Solution / guideline#
No speculative Shaka buffering patch is supplied. A bounded optional spinner policy and metadata-only diagnostics are included. The spinner policy treats sustained progress separately from a stale reported state; it is application mitigation, not correction of the underlying event.
All pinned patches and results
Limits / remaining work#
Generated live fixture rather than the original provider stream. A failing trace from that exact integration is still needed to establish its first divergence.
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
Case: shaka-project/shaka-player#9989 (opened 16 April 2026). Evidence status: public report and maintainer discussion; no independent reproduction. Root cause: unverified.
Observed behavior#
Shaka Player 5.1.0 on macOS Safari plays FairPlay-protected live HLS normally, but the application receives buffering: true without a subsequent buffering: false. Chrome/Firefox and Safari VOD behave differently. The user confirms that the media plays correctly while the spinner remains visible.
The user says the playback mode is MSE; a Shaka maintainer disputes that inference because the asset is MPEG-TS and suggests native src= handling. The maintainer could not reproduce the failure, lacked the FPS certificate, and noted that getNonDefaultConfiguration() was unexpectedly missing.
The issue closed for inactivity on 27 April 2026, not due to a verified fix.
Primary evidence: shaka-project/shaka-player#9989
First observable divergence#
The application's reported buffering state diverges from observable media progress. There is no evidence of a failed license request, invalid CKC, decoder stall, or AVFoundation error. This is primarily a state-observability/UI synchronization investigation, not yet a DRM failure.
Competing hypotheses (unverified)#
- Different native
src=vs MSE buffering-event semantics or Shaka event bridging. - The application subscribes to or interprets the wrong player instance, event lifecycle, or version-specific API.
- A missed transition in Shaka buffering observer or state propagation.
- A real buffering condition that coexists with short-term playback progress.
Deterministic client-side investigation#
- Pin Shaka release and effective configuration; log
video.src,video.currentSrc,video.readyState,video.networkState,video.paused,video.currentTime,video.buffered,video.seeking, and whetherMediaSource/SourceBufferis actually used. - Attach listeners before load for Shaka
bufferingand HTMLMediaElementplaying,waiting,stalled,seeking,seeked,timeupdate,error. Recordperformance.now(), player identity and load generation. - Sample currentTime progression every 250 ms for 30 s, distinguishing forward progress from stalled playback. Track whether
buffering=falsewas ever dispatched. - Compare clear vs authorized FairPlay, VOD vs live, native src vs verified MSE where supported, and fixed versions of Shaka. Change one variable at a time.
- Inspect pinned Shaka buffering observer and event-dispatch call paths; provide commit SHA, function, and line numbers. Do not assume WebKit source represents native AVPlayer implementation.
- For native AVPlayer control, separately correlate
timeControlStatus,reasonForWaitingToPlay,currentTime,loadedTimeRanges,AVPlayerItem.status, and error/access logs.
Client-only mitigation candidate#
Drive the spinner using a derived UI state with bounded hysteresis: treat sustained currentTime progression and active playback as evidence against an indefinite loading overlay, while retaining a separate flag for actual waiting/stall. Do not unconditionally hide the spinner based on one timeupdate event. Verify with pause, seek, rate changes, and startup.
FairPlay boundary#
Only investigate EXT-X-KEY → SKD/content ID → SPC → KSM → CKC → usable key when independent key-lifecycle evidence indicates a failure. Never publish certificates, tokens, SPC/CKC payloads, or keys. The original issue contains a signed license URL; do not reproduce its credential-bearing query string.
Reusable insight#
Playback progress, buffering telemetry, and UI loading state are distinct signals. A missing
buffering=falseevent is not proof of DRM failure or even a media stall. Instrument the state transition before attributing failure to FairPlay.
Evidence needed to close#
Two synchronized traces (successful and failing) with effective player mode, events, monotonic timestamps, currentTime progression, and pinned source. A root cause requires reproduction, first divergence, corrective intervention, and falsification of alternatives.
Extended investigation prompt#
Show the full second-AI investigation prompt
Act as a senior iOS/tvOS reverse engineer, AVFoundation/CoreMedia investigator, WebKit EME engineer, HLS/CMAF forensic analyst and FairPlay DRM specialist. Investigate shaka-project/shaka-player#9989. Safari macOS reportedly plays FairPlay live HLS while Shaka 5.1.0 emits buffering=true without buffering=false; the spinner stays visible. The reporter claims MSE, but a maintainer suspects native src=, and no fix was verified. Identify the FIRST PROVEN divergent state.
Evidence hierarchy: (1) Apple Developer Documentation, FairPlay Streaming SDK, HLS Authoring Specification, W3C EME/MSE and RFC/ISO contracts; (2) pinned Shaka and verified WebKit source, symbolicated AVFoundation/CoreMedia/CFNetwork traces and vetted security research; (3) byte-verified manifests, network captures and repeatable physical-device experiments; (4) explicitly labeled hypotheses. Cite exact URLs; for source claims provide commit SHA, path, function and line range. WebKit is not native AVPlayer source. Preserve MUST/SHOULD distinctions.
Trace manifest/EXT-X-KEY, playback mode selection, key initialization where relevant, Shaka buffering observer, HTMLMediaElement events, currentTime progression and UI state. Instrument monotonic timestamps and player/load generation IDs. Compare live/VOD, clear/FairPlay, native src/verified MSE, and Safari/Chrome; change one variable at a time. Independently test AVPlayer using timeControlStatus, reasonForWaitingToPlay, currentTime, and error/access logs. For each claim report evidence tier, counterevidence, confidence and falsification test. Never expose secrets or bypass DRM. Report root cause only after reproduction, first divergence and a controlled fix; otherwise mark ROOT CAUSE UNVERIFIED. Produce a publication-ready article with a client-only mitigation and separate server proposals. Never invent experiments or undocumented internals.