# VideoRendition Class

    public class VideoRendition : Rendition

Video-specific rendition type with geometry/trickplay metadata.

### Lifecycle

- `init(id:trackId:bitrate:codec:roles:properties:protected:supported:filtered:blocked:drmLicenseExpected:drmLicenseAvailable:selectable:drmInfo:width:height:trickplay:)`

  Creates a video rendition descriptor.

  #### Declaration

  Swift

      public init(
          id: String,
          trackId: String,
          bitrate: Int64 = -1,
          codec: String = "",
          roles: Roles = Roles(),
          properties: Properties = Properties(),
          protected: Bool = false,
          supported: Bool = false,
          filtered: Bool = false,
          blocked: Bool = false,
          drmLicenseExpected: Bool = false,
          drmLicenseAvailable: Bool = false,
          selectable: Bool = false,
          drmInfo: [DrmInfo] = [DrmInfo](),
          width: Int64 = -1,
          height: Int64 = -1,
          trickplay: Bool = false)

  #### Parameters

  `id` | Stable rendition identifier.
  `trackId` | Parent track identifier.
  `bitrate` | Peak bitrate in bits per second.
  `codec` | Codec identifier string.
  `roles` | Role metadata map.
  `properties` | Extra property metadata map.
  `protected` | Whether rendition is DRM-protected.
  `supported` | Whether rendition is supported by current runtime.
  `filtered` | Whether rendition was filtered by policy.
  `blocked` | Whether rendition is blocked from selection.
  `drmLicenseExpected` | Whether license is expected.
  `drmLicenseAvailable` | Whether license is currently available.
  `selectable` | Whether rendition is currently selectable.
  `drmInfo` | DRM metadata records.
  `width` | Video width in pixels.
  `height` | Video height in pixels.
  `trickplay` | Whether rendition is intended for trickplay.

### Public

- `width`

  Video width in pixels.

  #### Declaration

  Swift

      public let width: Int64

- `height`

  Video height in pixels.

  #### Declaration

  Swift

      public let height: Int64

- `trickplay`

  Whether this rendition is intended for trickplay.

  #### Declaration

  Swift

      public let trickplay: Bool