THEOplayer > MediaTrackEventMap
Inherits from TrackEventMap . See parent page for inherited properties and methods.
The events fired by a MediaTrack.
Signature:
export interface MediaTrackEventMap extends TrackEventMap
Property |
Type |
Description |
---|---|---|
QualityEvent |
Fired when the media track's active quality changes. |
|
QualityEvent |
Fired when a quality of the track becomes unavailable. |
|
Fired when the media track's target quality changes. |
Fired when the media track's active quality changes.
Signature:
activequalitychanged: QualityEvent<'activequalitychanged'>;
Fired when a quality of the track becomes unavailable.
Signature:
qualityunavailable: QualityEvent<'qualityunavailable'>;
- A Quality can become unavailable due to a DRM restriction (e.g. HDCP).
Fired when the media track's target quality changes.
Signature:
targetqualitychanged: TargetQualityChangedEvent;