You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transcript component cannot parse WebVTT files with additional information in the header. These files are properly interpreted as captions while the transcript component freezes when trying to display them.
Example of a valid vtt file from W3C that doesn't work in Transcript component:
WEBVTT
REGION
id:fred
width:40%
lines:3
regionanchor:0%,100%
viewportanchor:10%,90%
scroll:up
REGION
id:bill
width:40%
lines:3
regionanchor:100%,100%
viewportanchor:90%,90%
scroll:up
00:00:00.000 --> 00:00:20.000 region:fred align:left
<v Fred>Hi, my name is Fred
00:00:02.500 --> 00:00:22.500 region:bill align:right
<v Bill>Hi, I’m Bill
00:00:05.000 --> 00:00:25.000 region:fred align:left
<v Fred>Would you like to get a coffee?
NOTE: When parsing WebVTT does the parser allow arbitrary text before timed text? Is there a way to identify this?
Done Looks Like
Transcript component parses valid WebVTT files
Only timed text blocks are displayed to end user
Region and styling blocks are ignored; not used to style text
Dananji not trying to validate or parse what is within the block, just identifying them and skipping them.
Styling should not be displayed by end user; supposed to be read by parser and used to display text. Region is used for caption display only, so will be ignored for transcript text.
@joncameron Dananji's suggestion for this first pass was that styling and region info be ignored in the transcript context. Region info at least is intended for caption display, and does not pertain to transcript display. That sound ok?
Notes at top of transcript or with the transcript will be shown as plain text, but they do not have any timing component so span the time and text columns.
Description
Transcript component cannot parse WebVTT files with additional information in the header. These files are properly interpreted as captions while the transcript component freezes when trying to display them.
Example of a valid vtt file from W3C that doesn't work in Transcript component:
NOTE: When parsing WebVTT does the parser allow arbitrary text before timed text? Is there a way to identify this?
Done Looks Like
Related resources
The text was updated successfully, but these errors were encountered: