-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
VTT files with carriage return (CR \r) line endings are rejected by the parser with a ParsingError.Errors.BadSignature error.
Issue seems to be the regex at
Line 175 in 2eb1ea4
| if (!/\r\n|\n/.test(self.buffer)) { |
\r case, resulting in downstream rejection because it seems like there's only one line in the vtt.
Per https://www.w3.org/TR/webvtt1/#webvtt-line-terminator "A single U+000D CARRIAGE RETURN (CR) character." should be supported.
Other notes:
- See CR delimited VTT files not supported video.js#8367 in https://github.com/videojs/video.js referencing this one, since that is where the ultimate fix would need to be deployed
- We are still trying to figure out why we are getting VTT files mac classic CR line endings, and have a workaround by locally modifying files to fix the regex. But an official build would of course be better.
Metadata
Metadata
Assignees
Labels
No labels