# VideoTrack Class

    public class VideoTrack : Track, Equatable, CustomStringConvertible

Video track metadata and available renditions.

### Lifecycle

- `init(id:source:primary:roles:properties:label:framerate:)`

  Creates a video track descriptor.

  #### Declaration

  Swift

      public init(
          id: String,
          source: String = "",
          primary: Bool = false,
          roles: Roles = Roles(),
          properties: Properties = Properties(),
          label: String = "",
          framerate: Float = -1)

  #### Parameters

  `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.
  `framerate` | Nominal frame rate.

### Public

- `trackType`

  Track type discriminator.

  #### Declaration

  Swift

      public let trackType: TrackType

- `id`

  Track identifier.

  #### Declaration

  Swift

      public let id: String

- `source`

  Source group identifier (provider-defined).

  #### Declaration

  Swift

      public let source: String

- `primary`

  Whether this is marked as primary track.

  #### Declaration

  Swift

      public let primary: Bool

- `roles`

  Role metadata.

  #### Declaration

  Swift

      public let roles: Roles

- `properties`

  Extra property metadata.

  #### Declaration

  Swift

      public let properties: Properties

- `label`

  User-visible label.

  #### Declaration

  Swift

      public let label: String

- `framerate`

  Frame rate estimate for this track.

  #### Declaration

  Swift

      public var framerate: Float

- `renditions`

  Available renditions for this video track.

  #### Declaration

  Swift

      public var renditions: [VideoRendition]

- `==(_:_:)`

  Compares two video tracks field-by-field.

  #### Declaration

  Swift

      public static func == (lhs: VideoTrack, rhs: VideoTrack) -> Bool

- `addRendition(_:)`

  Adds a rendition to this video track.

  #### Declaration

  Swift

      public func addRendition(_ rendition: VideoRendition)

- `description`

  Human-readable diagnostic representation.

  #### Declaration

  Swift

      public var description: String { get }