TtmlRegion

com.bitmovin.player.api.media.subtitle

TtmlRegion

data class TtmlRegion(val id: String, val originX: Float, val originY: Float, val width: Float, val height: Float, val displayAlign: TtmlRegion.DisplayAlign?)

Describes a TTML region associated with a subtitle Cue.

Region coordinates and dimensions are normalized relative to the subtitle viewport.

Constructors

TtmlRegionconstructor(id: String, originX: Float, originY: Float, width: Float, height: Float, displayAlign: TtmlRegion.DisplayAlign?)

Types

NameSummary
DisplayAlignenum DisplayAlign : Enum<TtmlRegion.DisplayAlign>
Alignment of cue content within a TTML region.

Properties

NameSummary
displayAlignval displayAlign: TtmlRegion.DisplayAlign?
Alignment of cue content within the region, or null when unspecified.
heightval height: Float
Region height as a fraction of the subtitle viewport height.
idval id: String
TTML region identifier.
originXval originX: Float
Horizontal region origin as a fraction of the subtitle viewport width.
originYval originY: Float
Vertical region origin as a fraction of the subtitle viewport height.
widthval width: Float
Region width as a fraction of the subtitle viewport width.