Recover playback when native media rejects a decodable file #7

Merged
conrad merged 1 commit from codex/safari-codec-fallback into main 2026-09-05 23:03:46 -04:00
Owner

Safari reports MP4 support but rejects this library’s HEVC hev1/HE-AAC M4V during native loading. Preserve the native error code, probe the actual tracks after a decode/format rejection, and retry through the existing Mediabunny player when every primary track is decodable. Retire the failed output while preserving the pinned artifact, session, position and rate. Network/abort failures do not trigger decoder retries.

Validation: all 523 web tests pass; TypeScript and the production web build pass. Desktop Safari reproduced the exact 415,569,410-byte file’s native rejection, then the existing alternate player decoded both tracks, rendered video, advanced from the saved position and showed active audio. An actual iPhone retry is still needed.

Safari reports MP4 support but rejects this library’s HEVC hev1/HE-AAC M4V during native loading. Preserve the native error code, probe the actual tracks after a decode/format rejection, and retry through the existing Mediabunny player when every primary track is decodable. Retire the failed output while preserving the pinned artifact, session, position and rate. Network/abort failures do not trigger decoder retries. Validation: all 523 web tests pass; TypeScript and the production web build pass. Desktop Safari reproduced the exact 415,569,410-byte file’s native rejection, then the existing alternate player decoded both tracks, rendered video, advanced from the saved position and showed active audio. An actual iPhone retry is still needed.
Retry rejected native media with codec-aware decoding
Some checks failed
deploy-fly / validate (push) Successful in 10m57s
deploy-fly / deploy (push) Has been cancelled
57ad4700ea
conrad merged commit 57ad4700ea into main 2026-09-05 23:03:46 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
conrad/media!7
No description provided.