Interface PlaybackProgressedEvent

A stretch of the current segment that has played.

Reported once the audio can no longer be discarded, so it is never revised.

interface PlaybackProgressedEvent {
    duration: number;
    offset: number;
    startedAt: number;
}

Properties

duration: number

How much of it played, in milliseconds

offset: number

Where it starts in the audio captured for the current segment, in milliseconds

startedAt: number

The timestamp (Date.now()) at which this stretch began to play