foo-webview-sdk
    Preparing search index...

    Interface PlaybackTimeHighResPayload

    Payload of the playback:timeHighRes event. The playback position, about every 100 ms while playing and not paused, and once more right after a track starts, a seek or a resume. Not sent while every window is hidden.

    interface PlaybackTimeHighResPayload {
        hostTime: number;
        position: number;
    }
    Index
    hostTime: number

    Host system time when position was read, Unix epoch milliseconds with a fractional part, the same clock as Date.now(). Date.now() - hostTime is how late the event arrived, and position + (Date.now() - hostTime) / 1000 estimates the current position.

    position: number

    Position in seconds, with its fractional part, using the same output-buffer and DSP latency compensation and stepwise reading as playback.getPosition.