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
Types
| Name | Summary |
|---|---|
| DisplayAlign | enum DisplayAlign : Enum<TtmlRegion.DisplayAlign> Alignment of cue content within a TTML region. |
Properties
| Name | Summary |
|---|---|
| displayAlign | val displayAlign: TtmlRegion.DisplayAlign? Alignment of cue content within the region, or null when unspecified. |
| height | val height: Float Region height as a fraction of the subtitle viewport height. |
| id | val id: String TTML region identifier. |
| originX | val originX: Float Horizontal region origin as a fraction of the subtitle viewport width. |
| originY | val originY: Float Vertical region origin as a fraction of the subtitle viewport height. |
| width | val width: Float Region width as a fraction of the subtitle viewport width. |