Captions for uploaded videos (migration 066)

Video blocks get a Captions field and the hero a Video captions field,
each a WebVTT upload drawn as <track kind="captions" default> on a
video file. The media library takes .vtt (sniffed by its WEBVTT
header, kept as is, always in /uploads/captions/) with its own tab.
Newsletter parts leave the field out. nginx needs text/vtt in
mime.types: docs/media-uploads.md, step 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-04 21:55:05 -05:00
parent aaab1a945c
commit 33be618331
18 changed files with 123 additions and 43 deletions

View file

@ -159,6 +159,8 @@ export const blocksChild = (ownerKind) => ({
url("href"),
text("alt"),
text("cite"),
// Video blocks only (066): an uploaded video's WebVTT file.
text("captions"),
// People blocks only (054): whose team's tiles to show.
text("team_id"),
],