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

chore: Add text_utils.js #4941

Merged
merged 1 commit into from
Jan 30, 2023
Merged

chore: Add text_utils.js #4941

merged 1 commit into from
Jan 30, 2023

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented Jan 30, 2023

No description provided.

@avelad avelad added type: code health A code health issue priority: P2 Smaller impact or easy workaround labels Jan 30, 2023
@avelad avelad added this to the v4.4 milestone Jan 30, 2023
@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@avelad
Copy link
Collaborator Author

avelad commented Jan 30, 2023

Note: This helps prevent this kind of bug ( #4856), preventing duplicate code.

@avelad avelad merged commit ff80ae6 into shaka-project:main Jan 30, 2023
@avelad avelad deleted the text-utils branch January 30, 2023 17:23
joeyparrish pushed a commit that referenced this pull request Jan 30, 2023
joeyparrish pushed a commit that referenced this pull request Jan 30, 2023
avelad added a commit that referenced this pull request Feb 3, 2023
Adds color support for SimpleTextDisplayer and WebVttGenerator (only one
place to fix both now thanks to #4941).

It's limited to the [8 colors
classes](https://w3c.github.io/webvtt/#default-text-color) supported by
the WebVTT specification, and also works with their 3 or 6-digit hex
variants (if the stream has TTML subtitles).

It does not support rgb, rgba or any colors other than these 8.

Fixes #4545

---------

Co-authored-by: Alvaro Velad Galvan <ladvan91@hotmail.com>
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: code health A code health issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants