THEOplayer > Quality
Inherits from EventDispatcher<QualityEventMap>. See parent page for inherited properties and methods.
Represents a quality of a media track.
Signature:
export interface Quality extends EventDispatcher<QualityEventMap>
Property |
Type |
Description |
---|---|---|
|
Whether the quality is available. |
|
averageBandwidth (optional) |
|
The average bandwidth of the quality. |
|
The required bandwidth for the quality. |
|
|
The codecs of the quality. |
|
|
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. |
|
|
The label of the quality. |
|
|
The name of the quality. |
|
|
The unique identifier for this quality. |
Whether the quality is available.
Signature:
readonly available: boolean;
- A quality can be unavailable due to a DRM restriction (e.g. HDCP).
The average bandwidth of the quality.
Signature:
readonly averageBandwidth?: number;
The required bandwidth for the quality.
Signature:
readonly bandwidth: number;
The codecs of the quality.
Signature:
readonly codecs: string;
- These are represented as a string containing the codecs as defined by the manifest.
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.
Signature:
readonly id: string;
The label of the quality.
Signature:
label: string;
The name of the quality.
Signature:
readonly name: string;
The unique identifier for this quality.
Signature:
readonly uid: number;