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

    Type Alias UpscalingReasonCode

    UpscalingReasonCode:
        | "platform"
        | "no-gpu"
        | "driver"
        | "gpu-unsupported"
        | "rendering"
        | "adapter"
        | "decoding"
        | "unchecked"
        | string & {}

    Why the GPU's video upscaler does not work, as a stable kebab-case code. A newer player may add codes: compare with the ones you handle and show UpscalingReason.message for the rest. The codes, in the order the player checks them (the first that holds is reported):

    Code Meaning
    platform The player has no video upscaler on this system (macOS, Linux).
    no-gpu No GPU that can upscale video (Windows: no NVIDIA GPU).
    driver The graphics driver is too old (Windows: an NVIDIA driver before 530).
    gpu-unsupported The driver does not offer upscaling on this GPU (Windows: not an RTX GPU), or the check failed.
    rendering The player renders in software, or GPU rendering is still starting; upscaling needs GPU rendering (Rendering).
    adapter GPU rendering runs on another GPU than the one that can upscale (a laptop with two GPUs; Windows: choose the high-performance GPU for Vestra in Settings ▸ System ▸ Display ▸ Graphics).
    decoding The video is not decoded on the GPU that renders it: copy-back or software decoding, for example while a VideoFilter needs the frames in memory. UpscalingReason.cause says which, and UpscalingReason.plugins whose filters (newer players; see there).
    unchecked The player has not checked the GPU yet. Only in the answer to set(false), which never starts the check; state() and set(true) always check first.

    decoding and rendering while GPU rendering is still starting can pass during the run, so set(true) accepts them and keeps the request; every other reason holds until the player restarts, and set(true) rejects it. Turning upscaling off is always accepted.

    The plugin shows its own advice for the reasons the user can act on and the player's message for the rest. reason.code is looked up among the codes the plugin knows; an unknown code from a newer player falls through to the message, which names the GPU and what to do.

    const { reason } = await plugin.video.upscaling.state();
    // Advice for the codes this plugin knows; any other code shows the message.
    const advice: Partial<Record<UpscalingReasonCode, string>> = {
    driver: "Update the NVIDIA driver to 530 or newer.",
    rendering: "Turn on Picture ▸ GPU Rendering and restart.",
    };
    if (reason) console.log(advice[reason.code] ?? reason.message);

    0.5.16

    1.5.37