JWMediaTrack
@objcMembers
public class JWMediaTrack : NSObject
Provides information about captions or thumbnails. Supports TTML (DFXP), SRT, and WebVTT formats.
-
Path to the caption or thumbnail track file.
Declaration
Swift
public internal(set) var file: URL! { get } -
Label to be shown in the player in the captions popup.
Note
Only for captions. Not shown if only one caption track provided.Declaration
Swift
public internal(set) var label: String? { get } -
String representing the kind of track.
Note
‘captions’ and ‘thumbnails’ are currently supported.Declaration
Swift
public let kind: JWMediaTrackKind -
If set to
true, the player shows this caption track upon launch. The default value isfalse.Note
Only for captions.Declaration
Swift
public internal(set) var defaultTrack: Bool { get } -
Overridden to more accurately compare tracks.
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
JWMediaTrack Class Reference