foo-webview-sdk
    Preparing search index...

    Interface JitSessionAdoptNativeParamsExperimental

    Parameters for jitSession.adoptNative. Adopt the native playback captured by jitSession.prepareAdoption without interrupting it. The track playing becomes the current attempt, bound to currentEntryId, and keeps decoding; the native playback queue is emptied, its occurrences kept by the host, and the session schedules what follows (jitSession:needNext asks for it). Stopping or releasing the session gives the remaining occurrences back to the native queue and continues the playlist after the last row played from it. When no row is left after it, the last occurrence goes into a single-track playlist the host keeps for this (__webview_restore__), so playback stops after it instead of continuing the playlist it came from. A jitQueue call made while the context is open keeps its usual behavior; the session then stays stopped with reason legacyTakeover, keeps its control token and accepts only jitSession.release. Fails with CONFLICT when the snapshot was replaced, expired or already used, or native playback changed since it was taken, and with NOT_SUPPORTED when a setting no longer allows adoption; nothing changes then.

    interface JitSessionAdoptNativeParams {
        contextId: string;
        controlToken: string;
        currentEntryId: string;
        expectedRevision: number;
        requestId: string;
        sessionId: string;
        snapshotToken: string;
    }
    Index
    contextId: string

    The context returned by jitSession.prepareAdoption.

    controlToken: string

    Control token from jitSession.create or jitSession.claimControl.

    currentEntryId: string

    Caller's entry identifier for the track playing.

    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.

    snapshotToken: string

    The snapshot token returned with it.