M mehdipass Member Dec 26, 2020 #1 hi everyone i'm try to change the position subtitle in exoplayer. search and find setBottomPaddingFraction in exoplayer. how can to use this void?
hi everyone i'm try to change the position subtitle in exoplayer. search and find setBottomPaddingFraction in exoplayer. how can to use this void?
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2020 #2 Relevant post: https://www.b4x.com/android/forum/threads/exoplayer-subtitles.93712/post-596441 Javadoc: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/ui/SubtitleView.html You can call this method with: B4X: Dim fraction As Float = 0.5 'change as needed SubtitleView.RunMethod("setBottomPaddingFraction", Array(fraction)) The subtitles positioning is quite complex as the position can be set in the subtitles themselves. Try it. Upvote 0
Relevant post: https://www.b4x.com/android/forum/threads/exoplayer-subtitles.93712/post-596441 Javadoc: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/ui/SubtitleView.html You can call this method with: B4X: Dim fraction As Float = 0.5 'change as needed SubtitleView.RunMethod("setBottomPaddingFraction", Array(fraction)) The subtitles positioning is quite complex as the position can be set in the subtitles themselves. Try it.