Fired when an event occurs.

interface MediaTrackEvent {
    date: Date;
    qualities?: Quality | Quality[];
    subType: ACTIVE_QUALITY_CHANGED;
    trackType: MediaTrackType;
    trackUid: number;
    type: MEDIA_TRACK;
}

Hierarchy (view full)

Properties

date: Date

The creation date of the event.

qualities?: Quality | Quality[]

The affected media track's qualities.

trackType: MediaTrackType

The media track's type to which event belongs, either MediaTrackType.AUDIO or MediaTrackType.VIDEO.

trackUid: number

The media track's uid to which event belongs.

The type of the event.