AudioTrack
@objcMembers
@objc(BMPAudioTrack)
public class AudioTrack : Track, @unchecked Sendable
Describes an audio track.
-
The IETF BCP 47 language tag associated with the audio track.
Declaration
Swift
public private(set) var language: String? { get }
-
The language tag (RFC5646) associated with the EXT-X-MEDIA rendition.
Directly maps to the ASSOC-LANGUAGE attribute of a EXT-X-MEDIA entry.
Declaration
Swift
public let associatedLanguage: String?
-
Creates a new audio track
Declaration
Swift
public convenience init( label: String, identifier: String, isDefaultTrack: Bool, language: String? )
Parameters
label
The label for this track.
identifier
The unique identifier for this track.
isDefaultTrack
If set to
true
, this track would be considered as default.language
The IETF BCP 47 language tag associated with this track
Return Value
A new
AudioTrack
initialized with the provided metadata. -
Creates a new audio track
Declaration
Swift
public init( label: String, identifier: String, isDefaultTrack: Bool, language: String?, associatedLanguage: String? )
Parameters
label
The label for this track.
identifier
The unique identifier for this track.
isDefaultTrack
If set to
true
, this track would be considered as default.language
The IETF BCP 47 language tag associated with this track.
associatedLanguage
The language tag (RFC5646) associated with this track.
Return Value
A new
AudioTrack
initialized with the provided metadata.