logo

THEOplayer > Quality

Quality interface

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> 

Properties

Property

Type

Description

available

boolean

Whether the quality is available.

averageBandwidth (optional)

number

The average bandwidth of the quality.

bandwidth

number

The required bandwidth for the quality.

codecs

string

The codecs of the quality.

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.

uid

number

The unique identifier for this quality.

Property Details

available

Whether the quality is available.

Signature:

readonly available: boolean;

Remarks


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

averageBandwidth

The average bandwidth of the quality.

Signature:

readonly averageBandwidth?: number;

bandwidth

The required bandwidth for the quality.

Signature:

readonly bandwidth: number;

codecs

The codecs of the quality.

Signature:

readonly codecs: string;

Remarks


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

id

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;

label

The label of the quality.

Signature:

label: string;

name

The name of the quality.

Signature:

readonly name: string;

uid

The unique identifier for this quality.

Signature:

readonly uid: number;
github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2022. All Rights Reserved.
Leuven
New York
Singapore
Barcelona