foo-webview-sdk
    Preparing search index...

    Interface PlaybackSetPositionSuccess

    Successful response from playback.setPosition.

    interface PlaybackSetPositionSuccess {
        actualPosition: number;
        duration: number;
        hostTime: number;
        newPosition: number;
        oldPosition: number;
        requestedPosition: number;
        subsong: number;
        success: true;
    }
    Index
    actualPosition: number

    Effective seek position applied to the playback engine after clamping to track boundaries.

    duration: number

    Length of the track in seconds; 0 or less when the length is unknown.

    hostTime: number

    Host system time when newPosition was read, Unix epoch milliseconds with a fractional part, the same clock as Date.now().

    newPosition: number

    Position read right after the seek, in seconds, with the same latency compensation as playback.getPosition; the engine may still be settling, so this can still be the old position.

    oldPosition: number

    Position read before the seek, in seconds, with the same latency compensation as playback.getPosition.

    requestedPosition: number

    Requested seek position before clamping.

    subsong: number

    Subsong identifier of the track.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.