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:
parent
aaab1a945c
commit
33be618331
18 changed files with 123 additions and 43 deletions
13
server/src/migrations/066_video_captions.sql
Normal file
13
server/src/migrations/066_video_captions.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- ═══════════════════════════════════════════════════════════════
|
||||
-- 066 VIDEO CAPTIONS
|
||||
--
|
||||
-- A WebVTT file for an uploaded video, drawn as its captions track
|
||||
-- (WCAG 1.2.2). YouTube, Vimeo and Facebook embeds bring their own.
|
||||
-- The file is an upload in /uploads/captions/ (media.js).
|
||||
--
|
||||
-- content_blocks.captions a video block's
|
||||
-- front_page.video_captions the hero's featured video's
|
||||
-- ═══════════════════════════════════════════════════════════════
|
||||
|
||||
ALTER TABLE content_blocks ADD COLUMN captions TEXT;
|
||||
ALTER TABLE front_page ADD COLUMN video_captions TEXT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue