Skip to content

Change External Subtitle Position on Exoplayer #7243

Description

@GouravSna

[REQUIRED] Searched documentation and issues

Checked Subtitle view: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/ui/SubtitleView.html

[REQUIRED] Question

I want to change the subtitle position so for that i am using the following apis on Exoplayerview,
exoPlayerSubtitleView.setBottomPaddingFraction(); exoPlayerSubtitleView.setPadding();
Set padding is on View class and i am using that api.

My question is that is it the correct approach to move the position of subtitleview anywhere on the player screen because setBottomPaddingFraction helps me to move up and padding right and left gives me possibility to move right and left; I am keeping top and bottom as Zero values.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions