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 }
-
Creates a new audio track
Declaration
Swift
public 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.