foo-webview-sdk
    Preparing search index...

    Interface JitSessionPrepareAdoptionParamsExperimental

    Parameters for jitSession.prepareAdoption. Capture the native playback for adoption: the track playing, the native playback queue one occurrence at a time (repeated tracks stay separate) and the playlist it plays from. Nothing in playback, the queue, the playlists or the settings changes; read the occurrences and source rows with jitSession.getNativeContext. The session must be new: CONFLICT once it has played, while a jitQueue buffer is in use or while an adopted context is still open. A new call replaces an unadopted snapshot. Fails with NOT_SUPPORTED unless playback is running and not paused from a row of a normal playlist (not an autoplaylist or another locked one), the playback order is Default, cursor and playback following and stop-after-current are off, and the queue holds at most 1024 tracks whose positions match their playlists; details.reason names the first failed condition. jitSession.adoptNative commits the snapshot.

    interface JitSessionPrepareAdoptionParams {
        controlToken: string;
        expectedRevision: number;
        requestId: string;
        sessionId: string;
    }
    Index
    controlToken: string

    Control token from jitSession.create or jitSession.claimControl.

    expectedRevision: number

    The revision the command is based on.

    requestId: string

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

    sessionId: string

    Session to act on.