fix(youtube): keep auto captions on screen for their full span

YouTube's sentence-level ASR emits long caption rows with a placeholder
d="3000", while the caption actually displays until the next window
event. Trusting `d` made long lines vanish mid-speech and leave a blank
gap until the next cue.

Rolling auto-caption documents (rows with a="1") now end each cue at the
next event timestamp instead of t + d, matching YouTube's own display
timing. Manual and non-rolling TimedText keep duration-based timing so
real silence gaps are preserved.
This commit is contained in:
2026-08-26 00:07:42 -07:00
parent c2c25c0da6
commit f8ca8681dc
3 changed files with 78 additions and 7 deletions
+4
View File
@@ -0,0 +1,4 @@
type: fixed
area: youtube
- YouTube auto-generated captions no longer disappear mid-speech: long caption rows carry a placeholder 3-second duration in YouTube's TimedText data, so converted cues now stay on screen until the next caption event, matching YouTube's own display timing.