Interface VideoQuality

Represents a quality of a video track.

interface VideoQuality {
    available: boolean;
    averageBandwidth?: number;
    bandwidth: number;
    codecs: string;
    firstFrame: number;
    frameRate: number;
    height: number;
    id: string;
    label: string;
    name: string;
    score: undefined | number;
    uid: number;
    width: number;
    addEventListener<TType>(type, listener): void;
    removeEventListener<TType>(type, listener): void;
}

Hierarchy (view full)

Properties

available: boolean

Whether the quality is available.

Remarks


- A quality can be unavailable due to a DRM restriction (e.g. HDCP).

averageBandwidth?: number

The average bandwidth of the quality.

bandwidth: number

The required bandwidth for the quality.

codecs: string

The codecs of the quality.

Remarks


- These are represented as a string containing the codecs as defined by the manifest.

firstFrame: number

The timestamp of the first frame of the video quality, in seconds.

frameRate: number

The framerate of the video quality.

height: number

The video height of the video quality, in pixels.

id: string

The identifier for this quality. This identifier is tied to the stream's internal representation. It may be empty. For a unique id, use Quality.uid.

label: string

The label of the quality.

name: string

The name of the quality.

score: undefined | number

The HLS SCORE attribute.

Remarks


- Available since v6.8.0.
- Only for HLS streams.

uid: number

The unique identifier for this quality.

width: number

The video width of the video quality, in pixels.

Methods

Generated using TypeDoc