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

    Interface RenderingReason

    Why the player renders, or will render, the way it does: a stable RenderingReasonCode to branch on and a sentence to show.

    The plugin logs the player's explanation when the video is drawn in software. message is the player's English text and may name the graphics adapter and driver version; code is for decisions.

    const { mode, reason } = await plugin.rendering.state();
    if (mode === "software") console.log(`${reason.code}: ${reason.message}`);

    0.5.13

    1.5.35

    interface RenderingReason {
        code: RenderingReasonCode;
        message: string;
    }
    Index

    The reason as a stable kebab-case code; branch on this.

    message: string

    The reason as English text for people, for example with the graphics adapter's name and driver version; never branch on it.