feat: add subtitle size and position controls#9120
Draft
aditya0155 wants to merge 2 commits into
Draft
Conversation
auto-merge was automatically disabled
May 10, 2026 11:57
Head branch was pushed to by a user without write access
1 task
Contributor
Author
|
quick update: I submitted the upstream PR to Shaka Player (shaka-project/shaka-player#10077) to add native live hover previews for subtitle settings! I have also updated the PR body for this. |
Contributor
Author
|
Final update: The PR is merged now :) will make a new PR for integrating this feature when they release 5.2.0 |
Member
|
Just update this PR to have that when 5.2.0 is out? |
Contributor
Author
Sure I'll make it draft till then |
auto-merge was automatically disabled
May 13, 2026 06:59
Pull request was converted to draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Type
Related Issue
Partially closes #968 (check additional context)
Description
This PR brings Shaka’s built-in subtitle style controls directly into FreeTube’s video player.
After this PR, when you’re watching a video, you can tweak the subtitle size and move the subtitles up or down—straight from the player menu. To keep things solid, this uses Shaka’s native
captions-positionandcaptions-sizecontrols.Also, FreeTube saves your preferences. So if you change the subtitle size or reposition them, FreeTube remembers what you picked by saving
fontScaleFactorandpositionAreain yourdefaultCaptionSettings. Next time you watch a video or restart the player, your subtitles will look just how you left them.And to make sure nothing breaks, the app double-checks your saved settings before loading them. If anything is corrupt or doesn’t make sense, the player just skips it and keeps working as usual.
Screenshots
Before:
Before.The.Pr.mp4
After:
After.The.Pr.1.mp4
Testing
150%), and make sure the subtitles actually get bigger.Center Right), and confirm they move over.Desktop
Additional Context
Update on Hover Previews: I’ve sent an upstream PR to Shaka Player (shaka-project/shaka-player#10077) to add live hover previews for subtitle styles. Having this in Shaka itself means FreeTube doesn’t need to change around with the DOM anymore. Once Shaka merges that PR and FreeTube updates its Shaka version, #968 will be natively fixed.
(requiring only a one line configuration toggle in FreeTube to enable the native preview)