-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add align and vertical settings to WebVttGenerator #3413
Add align and vertical settings to WebVttGenerator #3413
Conversation
test/text/web_vtt_generator_unit.js
Outdated
'Test\n\n' + | ||
'00:00:40.000 --> 00:00:50.000\n' + | ||
'00:00:40.000 --> 00:00:50.000 align:middle\n' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you instead create a separate test case for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value is center (https://github.com/google/shaka-player/blob/master/lib/text/cue.js#L83), do you consider that it's necesaary separate the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. I wasn't referring to align:middle specifically, but all of the settings you've added support for in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
All tests passed! |
This PR adds align and vertical settings to WebVttGenerator