MediaTrack

public struct MediaTrack : Codable
extension MediaTrack: Equatable
extension MediaTrack: CustomDebugStringConvertible

Represents a media track.

  • The type of track. Check TrackType for possible values.

    Declaration

    Swift

    public let trackType: MediaTrackType?
  • The name which could be used for displaying on UI.

    Declaration

    Swift

    public let displayName: String?
  • The locale associated with the track.

    Declaration

    Swift

    public let locale: Locale?
  • Represents whether the track is a default one or not.

    Declaration

    Swift

    public var isDefault: Bool
  • Represents the ISO language code, based on the manifest representation. It mirrors the language code specified in the manifest.

    Declaration

    Swift

    public let isoLanguageCode: String?
  • Array of media characteristics that describe special properties of the track. Common values include "public.accessibility.describes-video" for audio descriptions, and others defined by AVFoundation.

    Declaration

    Swift

    public let mediaCharacteristic: [MediaTrackCharacteristic]
  • Undocumented

    Declaration

    Swift

    public init(trackType: MediaTrackType?, displayName: String?, locale: Locale?, isDefault: Bool = false, isoLanguageCode: String?, mediaCharacteristic: [MediaTrackCharacteristic] = [])
  • API to compare tracks

    Declaration

    Swift

    public static func == (lhs: `Self`, rhs: `Self`) -> Bool
  • The Debug description

    Declaration

    Swift

    public var debugDescription: String { get }