Files
apes-sidebar/docs
MycAigc 405bfd12aa feat(media): built-in audio/video preview through the file route
`.mp4` had no viewer, so it fell through to the `code` catch-all, came back
binary from fs.read and landed on the download pane. This adds:

- a built-in `media` viewer (`fetchStrategy: 'mediaUrl'`): <audio> for the
  audio containers, <video> for everything else, `preload="metadata"`, and the
  download link kept as the escape hatch;
- media MIME types on `/sidebar/file` (video/mp4, video/webm, audio/mpeg, ...);
- HTTP Range on the same route (206 + content-range, suffix ranges, clamping
  past EOF, 416 + `bytes */size`, multi-range / non-bytes headers fall back to
  200), so the player scrubs instead of buffering to EOF.

Tests: Range cases on a real node:http server, byteRangeOf units, the media
viewer's claim surface, the MIME table, and the 21-language key-set equality
for the two new strings.
2026-10-22 03:06:42 +00:00
..