foo-webview-sdk
    Preparing search index...

    Interface JitSessionReleaseParamsExperimental

    Parameters for jitSession.release. End the session and give the native context back: the buffer is emptied, the track playing keeps decoding, and the playback order and active playlist saved when the session first played are restored. After jitSession.adoptNative, the remaining native queue occurrences are given back first (see nativeDisposition); when that fails the session is kept, the error carries details.contextId and details.recoveryId, and a release with a new requestId continues where it stopped. Giving the context back while foobar2000 may already have picked the buffered next entry (see jitSession.setNext) fails with CONFLICT and details.reason: "nextPreselected" and changes nothing; nativeDisposition: "detach" is still accepted. Without an adopted context, a next entry picked that way may still play after the release.

    interface JitSessionReleaseParams {
        controlToken: string;
        expectedRevision: number;
        nativeDisposition?: "restore" | "detach";
        requestId: string;
        sessionId: string;
    }
    Index
    controlToken: string

    Control token from jitSession.create or jitSession.claimControl.

    expectedRevision: number

    The revision the command is based on.

    nativeDisposition?: "restore" | "detach"

    What to do with an adopted native context: restore (default) gives the remaining occurrences back to the native queue and continues the playlist; detach leaves the native queue and playlists as they are and keeps the occurrences readable. Only for a session that adopted native playback.

    requestId: string

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

    sessionId: string

    Session to act on.