logo

THEOplayer > MediaTrackEventMap

MediaTrackEventMap interface

Inherits from TrackEventMap. See parent page for inherited properties and methods.

The events fired by a MediaTrack.

Signature:

export interface MediaTrackEventMap extends TrackEventMap 

Properties

Property

Type

Description

activequalitychanged

QualityEvent<'activequalitychanged'>

Fired when the media track's active quality changes.

qualityunavailable

QualityEvent<'qualityunavailable'>

Fired when a quality of the track becomes unavailable.

targetqualitychanged

TargetQualityChangedEvent

Fired when the media track's target quality changes.

Property Details

activequalitychanged

Fired when the media track's active quality changes.

Signature:

activequalitychanged: QualityEvent<'activequalitychanged'>;

qualityunavailable

Fired when a quality of the track becomes unavailable.

Signature:

qualityunavailable: QualityEvent<'qualityunavailable'>;

Remarks


- A Quality can become unavailable due to a DRM restriction (e.g. HDCP).

targetqualitychanged

Fired when the media track's target quality changes.

Signature:

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