public class AudioTrack : Track, Equatable, CustomStringConvertible
Audio track metadata and available renditions.
public class AudioTrack : Track, Equatable, CustomStringConvertible
Audio track metadata and available renditions.
Creates an audio track descriptor.
Swift
public init(
id: String,
source: String = "",
primary: Bool = false,
roles: Roles = Roles(),
properties: Properties = Properties(),
label: String = "",
language: String = "",
channels: Int32 = -1,
channelConfig: Int32 = -1)
id
|
Stable track identifier. |
source
|
Source/adaptation-set identifier. |
primary
|
Whether this track is marked primary. |
roles
|
Role metadata map. |
properties
|
Extra property metadata map. |
label
|
User-visible track label. |
language
|
Language code. |
channels
|
Audio channel count. |
channelConfig
|
Channel configuration value/mask. |
Track type discriminator.
Swift
public let trackType: TrackType
Track identifier.
Swift
public let id: String
Source group identifier (provider-defined).
Swift
public let source: String
Whether this is marked as primary track.
Swift
public let primary: Bool
Role metadata.
Swift
public let roles: Roles
Extra property metadata.
Swift
public let properties: Properties
User-visible label.
Swift
public let label: String
Language code for this audio track.
Swift
public let language: String
Number of audio channels.
Swift
public let channels: Int32
Channel configuration mask/value.
Swift
public let channelConfig: Int32
Available renditions for this audio track.
Swift
public var renditions: [AudioRendition]
Compares two audio tracks field-by-field.
Swift
public static func == (lhs: AudioTrack, rhs: AudioTrack) -> Bool
Adds a rendition to this audio track.
Swift
public func addRendition(_ rendition: AudioRendition)
Human-readable diagnostic representation.
Swift
public var description: String { get }