foo-webview-sdk
    Preparing search index...

    Interface JitSessionPlayParamsExperimental

    Parameters for jitSession.play. Play an entry now as a new attempt. The answer means the command was accepted, not that the resource can play: jitSession:operationCompleted reports whether it was added and started, and jitSession:attemptFinished how the attempt ended. Tracks in the native playback queue are kept and play first when the attempt ends. Write commands fail with NOT_OWNER for a token that is not the current controller's and with CONFLICT when expectedRevision is out of date or requestId was used for a different command.

    interface JitSessionPlayParams {
        controlToken: string;
        entryId: string;
        expectedRevision: number;
        expiresAt?: number;
        location: string;
        requestId: string;
        sessionId: string;
        title?: string;
    }
    Index
    controlToken: string

    Control token from jitSession.create or jitSession.claimControl.

    entryId: string

    Caller's identifier of this occurrence in its queue; repeated resources use different ones.

    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 to play: a file path or file:// URL, path|subsong:N for one subsong, or an http(s):// stream. A playlist file that expands to more than one track fails the operation. CUE locations must name a subsong explicitly. At most 2048 characters.

    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.

    ""