Skip to Content

Interface: VideoTrack

Represents a video track (quality variant).

interface VideoTrack {    bandwidth: number;    id: string;    kind: "variant" | "auto";    label: string;    height?: number;    width?: number;}

Properties

bandwidth

bandwidth: number

Bitrate in bits per second.


id

id: string

Unique identifier for the track.


kind

kind: "variant" | "auto"

The type of video track.

  • 'variant': A specific quality level.
  • 'auto': Synthetic track representing automatic quality selection (ABR).

label

label: string

Human-readable label (e.g., “1080p (6.2 Mbps)“).


height?

optional height: number

Video height in pixels.


width?

optional width: number

Video width in pixels.

Last updated on