# Tracks Class

    public class Tracks : Equatable, CustomStringConvertible

Container that groups all available media tracks by type.

### Lifecycle

- `init(_:)`

  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`

  Video tracks view.

  #### Declaration

  Swift

      public var video: [VideoTrack] { get }

- `audio`

  Audio tracks view.

  #### Declaration

  Swift

      public var audio: [AudioTrack] { get }

- `text`

  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

- `description`

  Human-readable summary of tracks and child entries.

  #### Declaration

  Swift

      public var description: String { get }