Events which can be triggered by user interaction as well as internally. The issuer is to determine whether this was triggered internally ('api') or by the UI ('ui')

interface AudioTrackEvent {
    issuer?: string;
    time: number;
    timestamp: number;
    track: AudioTrack;
    type: PlayerEvent;
}

Hierarchy (view full)

Properties

issuer?: string

The issuer of this event, as passed into the according API method. 'api' by default if no issuer was specified.

time: number

Current playback time (in seconds)

timestamp: number

The time at which this event was fired

track: AudioTrack

The affected audio track

Event type, e.g. 'play'