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

Add subtitile position offset option for media3 renderer #3969

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pbasov
Copy link

@pbasov pbasov commented Sep 7, 2024

This PR adds back subtitle position control after client lost it when sub custom renderer has been removed in #3825

Changes

  • Adjusted VideoManager.java to apply the offset value to the subtitle view using setBottomPaddingFraction.
  • Added a seekbar for configuring subtitle position offset in the PlaybackPreferencesScreen.

Copy link
Member

@nielsvanvelzen nielsvanvelzen left a comment

Choose a reason for hiding this comment

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

While this does work, I'm not sure about the values. Using -10 or 100 will not display the subtitles at all so those don't feel like safe limits. The seekbar doesn't go over 52 for some reason so I had to use my mouse in the emulator (which obviously doesn't work on a real device). Also, there is no unit specified. So I can place my subtitles at "-5", -5 what? pixels? meters? dollars?

@nielsvanvelzen
Copy link
Member

Hey @pbasov, are you still interested in finishing this pull request? it's currently waiting for you to address my comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants