GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeCaptionsYPosition - Android

BlazeCaptionsYPosition defines the vertical position of the captions box within the player container.

ValueDescription
TopAligns the captions box to the top edge of the player.
CenterCenters the captions box vertically within the player.
BottomAligns 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.Top

Center

Centers the captions box vertically within the player.

playerStyle.captions.positioning.yPosition = BlazeCaptionsYPosition.Center

Bottom

Aligns the captions box to the bottom edge of the player.

playerStyle.captions.positioning.yPosition = BlazeCaptionsYPosition.Bottom

Custom

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)

Did this page help you?