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

    Type Alias RenderingReasonCode

    RenderingReasonCode:
        | "default"
        | "pending"
        | "headless"
        | "no-gpu-backend"
        | "env"
        | "preference"
        | "denylist"
        | "previous-crash"
        | "init-failed"
        | "window-fallback"
        | string & {}

    Why the player renders the way it does, as a stable kebab-case code. A newer player may add codes: compare with the ones you handle and show RenderingReason.message for the rest. The codes:

    Code Meaning
    default Nothing ruled the GPU out; the platform's default (macOS: GPU; Windows since version 0.5.14: software until the user turns on GPU rendering).
    pending GPU rendering is starting.
    headless The player runs without a user interface.
    no-gpu-backend This player has no GPU renderer on this system (Linux today; Windows has one since version 0.5.14, off by default, which reports default).
    env The environment chose it (VESTRA_RENDER, VESTRA_SOFTWARE_RENDER).
    preference The user chose software rendering (Rendering.setPreference); GPU chosen and available reports default.
    denylist The graphics driver is on the player's denylist.
    previous-crash GPU rendering crashed at an earlier start; it is tried again after a driver or player update, or after 7 days.
    init-failed GPU rendering could not start.
    window-fallback A window could not show GPU frames; the player switched to software during the run.

    The plugin adds advice only when the graphics driver is the cause. reason.code is looked up among the codes the plugin knows; an unknown code from a newer player falls through to the player's own message.

    const { reason } = await plugin.rendering.state();
    // Advice for the codes this plugin knows; any other code shows the message.
    const advice: Partial<Record<RenderingReasonCode, string>> = {
    denylist: "Update the graphics driver to use the GPU.",
    "previous-crash": "The GPU renderer crashed earlier; it is retried after an update.",
    };
    console.log(advice[reason.code] ?? reason.message);

    0.5.13

    1.5.35