media icon indicating copy to clipboard operation
media copied to clipboard

Caption positioning for 608/708 standard

Open nishantkp opened this issue 1 year ago • 1 comments

Hello,

How can I adjust the caption position from the player view for a broadcast stream (embedded 608/708)?

So captions are fixated on line 10 or 11. I wasn't able to find anything for adjusting vertical positioning.

Is bottomPaddingFraction a good way to do it?

Streaming protocol: HLS

nishantkp avatar Aug 20 '24 19:08 nishantkp

If the position is coming from the source media, and you want to override it, bottomPaddingFraction won't work (because it only applies to cues with an "unset" vertical position (which sounds like isn't the case here?)).

You can instead modify the Cue objects after they've been emitted by the player and before they are consumed by PlayerView, as described in https://github.com/google/ExoPlayer/issues/7243#issuecomment-614651130

icbaker avatar Aug 22 '24 14:08 icbaker

Closing because I think the question has been answered.

icbaker avatar Sep 04 '24 15:09 icbaker