Skip to content

fix(player): Dolby passthrough on Safari (iPad stuck on Buffering) - #11

Merged
uplg merged 1 commit into
mainfrom
fix/ipad-dolby-passthrough
Nov 3, 2026
Merged

uplg merged 1 commit into
mainfrom
fix/ipad-dolby-passthrough

Conversation

@uplg

@uplg uplg commented Nov 3, 2026

Copy link
Copy Markdown
Owner

An iPad (Safari 26.6.1) sat on a black « Buffering » on The Price of Confession S01E02: MKV, HEVC Main 10 1080p, five E-AC-3 5.1 tracks. Server side: three manifest fetches, no remux, no playback-error, so Tier B mounted and stalled without an error. The video feed waits on the libav.js decode + AudioEncoder re-encode of the audio.

Safari plays AC-3 / E-AC-3 itself (it said so in its Iris-Caps). msePlaysAudio() asks MSE about ac-3 / ec-3; pickTier, Tier B and Tier E pass the track through when it says yes. Mediabunny writes the dac3 / dec3 boxes. Chrome answers no and keeps re-encoding.

Tests:

  • iPad bench: new clip shaped like the release (10-bit HEVC, 2 × E-AC-3 5.1). Tier B at 1x, audio passed through, and it still plays after a mid-file seek.
  • Chrome E-AC-3 bench (Tier B and Tier C via libav) unchanged.
  • bun run check clean, bun run test 592 green.

Not reproduced before the fix: emulated WebKit plays the old path too. Validate on the real iPad after deploy.

…y through instead of re-encoding it

An iPad sat black on « Buffering » on a WEB HEVC Main 10 + E-AC-3 5.1 MKV:
Tier B mounted, no error, nothing played. The video feed waits on the
libav decode + AudioEncoder re-encode of the audio. msePlaysAudio() asks
MSE about ac-3 / ec-3 (Safari yes, Chrome no) and pickTier, Tier B and
Tier E pass the track through when it says yes; Mediabunny writes the
dac3 / dec3 boxes. iPad bench gains a clip shaped like the release.
@uplg
uplg merged commit a02c487 into main Nov 3, 2026
3 checks passed
@uplg
uplg deleted the fix/ipad-dolby-passthrough branch November 3, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant