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(WebVTT): Fix support for line:0 vertical alignment #5632

Merged
merged 3 commits into from
Sep 12, 2023

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented Sep 11, 2023

Related to #4446

@avelad avelad added type: bug Something isn't working correctly priority: P2 Smaller impact or easy workaround component: WebVTT The issue involves WebVTT subtitles specifically labels Sep 11, 2023
@avelad avelad added this to the v4.5 milestone Sep 11, 2023
@avelad
Copy link
Collaborator Author

avelad commented Sep 11, 2023

@shaka-bot test

@shaka-bot
Copy link
Collaborator

@avelad: Lab tests started with arguments:

  • pr=5632

@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

// safely.
if (cue.line == 0 &&
cue.lineInterpretation == Cue.lineInterpretation.LINE_NUMBER) {
cue.lineInterpretation = Cue.lineInterpretation.PERCENTAGE;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not technically listed in the interface or anything, but up until now the process of appending cues has not caused the actual cue objects to be mutated.
I think it'd be better to make a local variable for lineInterpretation and change that, here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed!

@avelad avelad requested a review from theodab September 12, 2023 10:44
@avelad
Copy link
Collaborator Author

avelad commented Sep 12, 2023

@shaka-bot test

@shaka-bot
Copy link
Collaborator

@avelad: Lab tests started with arguments:

  • pr=5632

@avelad avelad merged commit eed393f into shaka-project:main Sep 12, 2023
29 of 31 checks passed
@avelad avelad deleted the subtitle-line-0 branch September 12, 2023 12:28
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Nov 11, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Nov 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: WebVTT The issue involves WebVTT subtitles specifically priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants