-
-
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
Fixed subtitles styling in firefox. #5737
base: master
Are you sure you want to change the base?
Fixed subtitles styling in firefox. #5737
Conversation
Thanks for sharing the information. setCueAppearance is responsible for rendering the subtitles natively and it is not being called because of firefox related checks inside enableNativeTrackSupport. Even if we change it, we get the issue you mentioned i.e. subtitle font-size is very small in firefox when compared to other browsers. So, using custom subtitle element should be better. |
I wonder if this deserves an option in the subtitle settings to use native styling. It seems like subtitle styling is becoming more of an issue over time. |
yeah, It might be better to add an option to select between native or custom subtitle styling. Should I go ahead and try implementing it? |
Sure go for it! |
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.
ESLint doesn't pass. Please fix all ESLint issues.
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.
ESLint doesn't pass. Please fix all ESLint issues.
As suggested, we have three modes now i.e. Auto, Native and Custom. Auto will be the default.
Is this fine or If you want me to try other approach, I am happy to implement that as well. |
Quality Gate passedIssues Measures |
Cloudflare Pages deployment
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
@venkat-karasani Would really appreciate some movement on this :) |
@dmitrylyzo seems like the PR creator is MIA, can you please resolve and merge? |
resolved the merge conflict. |
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.
Works as intended.
Recommend using "Squash and merge".
Quality Gate passedIssues Measures |
Changes
There are two approaches to fix this:
Code for both of these approaches is already present, went with the custom subtitles element approach.
Issues
Fixes #5602