foo-webview-sdk
    Preparing search index...

    Interface JitSessionSetNextParamsExperimental

    Parameters for jitSession.setNext. Set, replace or withdraw the entry after the current attempt. Accepted only while afterAttemptId is still the current attempt. A replaced or withdrawn next entry is removed from the buffer and its pending operation ends as superseded; the current attempt keeps playing. Without entryId, the next entry is withdrawn; endOfQueue: true also declares that nothing follows. When the current attempt has already ended and the session is waiting for its next entry, the new entry starts at once. Within the output buffer length plus one second of the current track's end, foobar2000 may already have picked the buffered next entry to follow it, so withdrawing or replacing a buffered entry then fails with CONFLICT and details.reason: "nextPreselected": nothing changes and the buffered entry plays next. Once it starts, set what follows it against its attempt. Setting a next entry while none is buffered is still accepted.

    interface JitSessionSetNextParams {
        afterAttemptId: string;
        controlToken: string;
        endOfQueue?: boolean;
        entryId?: string;
        expectedRevision: number;
        expiresAt?: number;
        location?: string;
        requestId: string;
        sessionId: string;
        title?: string;
    }
    Index
    afterAttemptId: string

    The current attempt the command is meant for.

    controlToken: string

    Control token from jitSession.create or jitSession.claimControl.

    endOfQueue?: boolean

    Declare that nothing follows. Cannot be combined with entryId.

    false
    
    entryId?: string

    Identifier of the next entry; leave out to withdraw the next entry.

    expectedRevision: number

    The revision the command is based on.

    expiresAt?: number

    When the location stops being valid, in Unix milliseconds; recorded only.

    location?: string

    Resource of the next entry, written as for jitSession.play; required with entryId.

    requestId: string

    Caller-chosen key that makes a retry return the first answer instead of running again.

    sessionId: string

    Session to act on.

    title?: string

    Display title.