VttProperties
@objc(BMPVttProperties)
@objcMembers
public final class VttProperties : NSObject
-
Returns the writing direction
Default: VttVerticalUnset
Note
VttVerticalUnset
means the writing direction should be horizontalDeclaration
Swift
public let vertical: VttVertical
-
Returns the vertical position of the cue box
Declaration
Swift
public let line: VttLine
-
Returns the alignment of the line property
Note
SeeVttLineAlign
for more informationDeclaration
Swift
public let lineAlign: VttLineAlign
-
Returns whether the line attribute should be interpreted as absolute line number or as relative position
Declaration
Swift
public let snapToLines: Bool
-
Returns the size of the cue box relative to the video dimensions
Default: 100
Note
If the writing direction is horizontal, then the size percentages are relative to the width of the video, otherwise to the height of the videoDeclaration
Swift
public let size: Double
-
Returns the text alignment inside the cue box
Declaration
Swift
public let align: VttAlign
-
Returns the horizontal position of the cue box
Declaration
Swift
public let position: VttPosition
-
Returns the alignment of the line property
Default: VttPositionAlignAuto
Note
SeeVttPositionAlign
for more informationDeclaration
Swift
public let positionAlign: VttPositionAlign