@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface MotionState

    What VideoMotion.state and VideoMotion.set report: this plugin's mode, what the player does now, and why each mode cannot work.

    The plugin's status line shows the rates while the converter runs, else why the chosen mode waits.

    const state = await plugin.video.motion("amd").state();
    // The reason of the mode this plugin chose.
    const waiting = state.mode === "display" ? state.display : state.double;
    const line =
    state.active === "off"
    ? (waiting?.message ?? "Off")
    : `${state.sourceFps} → ${state.outputFps ?? "…"} fps`;
    console.log(line);

    0.8.1

    1.7.19

    interface MotionState {
        engine: MotionEngine;
        mode: MotionMode;
        active: MotionMode;
        double: MotionReason | null;
        display: MotionReason | null;
        searchMode: "native" | "performance" | null;
        sourceFps: number | null;
        outputFps: number | null;
        displayFps: number;
        gpu: string | null;
        inChain: boolean;
    }
    Index
    engine: MotionEngine

    The converter this state is of (MotionEngine).

    This plugin's request (VideoMotion.set); off until it asks.

    active: MotionMode

    What the player does now, for this plugin or another one (the strongest mode asked for that can work): off while nothing is asked, while a reason stands in the way, and until the input rate is measured (MotionState.sourceFps may show the container's rate before).

    double: MotionReason | null

    Why Double Frame Rate cannot work now; null while it can.

    display: MotionReason | null

    Why Match Display cannot work now; null while it can.

    searchMode: "native" | "performance" | null

    The converter's motion search while it runs: native, the player's setting for this video, or performance, the faster one (the first step when the GPU falls behind: AMD searches downscaled frames, NVIDIA uses its fast optical flow, which it already uses above 1440p); null while off.

    sourceFps: number | null

    The converter's input rate, in frames a second: the rate after every other filter in the player's chain, measured while the converter is out of it. A plugin's filter that changes the rate counts, and a video the player deinterlaces by field reads twice its frame rate (25i: 50). Until it is measured, the container's frame rate; null while neither is known.

    outputFps: number | null

    The converter's output rate as measured, in tenths; null while off.

    displayFps: number

    The display's refresh rate the player paces to, in Hz.

    gpu: string | null

    The name of the GPU that converts; null where there is none.

    inChain: boolean

    The converter is in the player's video filter chain now, read from the chain itself.