Interface AudioQuality

Represents a quality of an audio track.

interface AudioQuality {
    audioSamplingRate: number | [number, number];
    available: boolean;
    averageBandwidth?: number;
    bandwidth: number;
    codecs: string;
    id: string;
    label: string;
    name: string;
    score: undefined | number;
    uid: number;
    addEventListener<TType>(type, listener): void;
    removeEventListener<TType>(type, listener): void;
}

Hierarchy (view full)

Properties

audioSamplingRate: number | [number, number]

The sampling rate of the audio quality.

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.

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.

Methods

Generated using TypeDoc