Cue
@objcMembers
@objc(BMPCue)
public class Cue : NSObject, NSCopying
Describes a subtitle cue.
-
The start time of the cue in seconds
Declaration
Swift
public var startTime: TimeInterval -
The end time of the cue in seconds
Declaration
Swift
public var endTime: TimeInterval -
The cue text as HTML
Declaration
Swift
public var html: String? -
The cue text
Declaration
Swift
public var text: String? -
The cue image
Declaration
Swift
public var image: UIImage? -
The position of the cue. Only relevant for CEA-captions, provides information about where the cue should be positioned on a grid of 15 character rows times 32 columns
Declaration
Swift
public var position: CuePosition? -
The region of the cue
Declaration
Swift
public var region: String? -
The region style of the cue
Declaration
Swift
public var regionStyle: String? -
The vtt positioning properties for this cue
Declaration
Swift
public var vtt: VttProperties? -
Declaration
Swift
public init( startTime: TimeInterval, endTime: TimeInterval, html: String?, text: String?, image: UIImage?, position: CuePosition?, region: String?, regionStyle: String?, vttProperties: VttProperties? )Parameters
startTimeThe start time of the cue in seconds
endTimeThe end time of the cue in seconds
htmlThe cue text as HTML
textThe cue text
imageThe cue image
positionThe position of the cue. Only relevant for CEA captions
regionThe region of the cue
regionStyleThe region style of the cue
vttPropertiesThe vtt positioning properties for this cue
Return Value
A new subtitle cue
-
Declaration
Swift
public convenience init( startTime: TimeInterval, endTime: TimeInterval, html: String?, text: String?, image: UIImage?, position: CuePosition?, region: String?, regionStyle: String? ) -
Declaration
Swift
public convenience init( startTime: TimeInterval, endTime: TimeInterval, text: String ) -
Declaration
Swift
public convenience init( startTime: TimeInterval, endTime: TimeInterval, text: String, vttProperties: VttProperties? ) -
Declaration
Swift
public convenience init( startTime: TimeInterval, endTime: TimeInterval, html: String ) -
Declaration
Swift
public convenience init( startTime: TimeInterval, endTime: TimeInterval, image: UIImage )
Cue Class Reference