Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: VTT line styling failing, invalid snapToLines value #4167

Merged

Conversation

bwallberg
Copy link
Contributor

@bwallberg bwallberg commented Apr 5, 2023

Fixes two issues with the new VTT styling:

Line
https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line it's either a number or "auto". Setting it to a string number throws errors.

snapToLines
https://www.w3.org/TR/webvtt1/

If the last character in linepos is a U+0025 PERCENT SIGN character (%), then let cue’s WebVTT cue snap-to-lines flag be false. Otherwise, let it be true.

It's true by default.

@dsilhavy dsilhavy added this to the 4.7.0 milestone Apr 5, 2023
@dsilhavy dsilhavy merged commit c8ba161 into Dash-Industry-Forum:development Apr 13, 2023
3 checks passed
@bwallberg bwallberg deleted the fix/vtt_line_styling branch April 13, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants