Tracks Class

public class Tracks : Equatable, CustomStringConvertible

Container that groups all available media tracks by type.

Lifecycle

  • Creates a track collection from raw track entries.

    Declaration

    Swift

    public init(_ tracks: [Track])

    Parameters

    tracks

    Source list of typed/untyped Track entries.

Public

  • all

    All tracks in their original order.

    Declaration

    Swift

    public let all: [Track]
  • Video tracks view.

    Declaration

    Swift

    public var video: [VideoTrack] { get }
  • Audio tracks view.

    Declaration

    Swift

    public var audio: [AudioTrack] { get }
  • Text tracks view.

    Declaration

    Swift

    public var text: [TextTrack] { get }
  • Compares two track collections by typed content.

    Declaration

    Swift

    public static func == (lhs: Tracks, rhs: Tracks) -> Bool
  • Human-readable summary of tracks and child entries.

    Declaration

    Swift

    public var description: String { get }