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
labelThe label for this track.
identifierThe unique identifier for this track.
isDefaultTrackIf set to
true, this track would be considered as default.languageThe IETF BCP 47 language tag associated with this track
Return Value
A new
AudioTrackinitialized with the provided metadata. -
Creates a new audio track
Declaration
Swift
public init( label: String, identifier: String, isDefaultTrack: Bool, language: String?, associatedLanguage: String? )Parameters
labelThe label for this track.
identifierThe unique identifier for this track.
isDefaultTrackIf set to
true, this track would be considered as default.languageThe IETF BCP 47 language tag associated with this track.
associatedLanguageThe language tag (RFC5646) associated with this track.
Return Value
A new
AudioTrackinitialized with the provided metadata.
AudioTrack Class Reference