BlazeCaptionsYPosition - Android
BlazeCaptionsYPosition defines the vertical position of the captions box within the player container.
| Value | Description |
|---|---|
Top | Aligns the captions box to the top edge of the player. |
Center | Centers the captions box vertically within the player. |
Bottom | Aligns the captions box to the bottom edge of the player. |
Custom(offsetPercent) | Positions the captions box by an offset from the top edge, as a percentage of the player height. |
Top
Aligns the captions box to the top edge of the player.
playerStyle.captions.positioning.yPosition = BlazeCaptionsYPosition.TopCenter
Centers the captions box vertically within the player.
playerStyle.captions.positioning.yPosition = BlazeCaptionsYPosition.CenterBottom
Aligns the captions box to the bottom edge of the player.
playerStyle.captions.positioning.yPosition = BlazeCaptionsYPosition.BottomCustom
Positions the captions box by a custom offset from the top edge. The offset is a percentage of the player height. Values outside the 0..100 range are coerced into that range.
playerStyle.captions.positioning.yPosition = BlazeCaptionsYPosition.Custom(offsetPercent = 80)Updated 22 days ago
Did this page help you?
