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

    Interface SystemInfo

    What App.system reports.

    1.0.0

    interface SystemInfo {
        os: "other" | "macos" | "windows" | "linux";
        name: string;
        version: string | null;
        build: string | null;
        model: string | null;
        arch: string;
        displays: readonly DisplayInfo[];
        rendering?: "software" | "gpu";
        renderingReason?: RenderingReason;
    }
    Index
    os: "other" | "macos" | "windows" | "linux"

    The operating system family.

    name: string

    Product name: macOS, Windows 11, …

    version: string | null

    26.2 (macOS), 23H2 (Windows); null when unknown.

    build: string | null

    25C56 (macOS), 22631.4460 (Windows); null when unknown.

    model: string | null

    Hardware model (Mac15,6, the firmware's product name); null when unknown.

    arch: string

    CPU architecture of the player build: aarch64, x86_64, …

    displays: readonly DisplayInfo[]

    Primary display first; empty without a user interface.

    rendering?: "software" | "gpu"

    Which renderer draws the video now: "gpu" (the GPU renderer, so render options apply) or "software" (they fail with unsupported). Read at each call. It changes at most once while the player runs, from "gpu" to "software" when a window cannot show GPU frames; the owner of the render options hears that switch through RenderOptions.onStatus.

    Absent (undefined) on players before 0.5.12, which do not report it: the renderer is then unknown, not software.

    Today the player renders on the GPU on macOS, on Windows when the user turned on the Picture panel's GPU Rendering (since version 0.5.14; off by default), and in software otherwise: on Windows by default, on Linux and without a user interface (see Platforms); test this field rather than SystemInfo.os.

    The plugin adds its HDR command only when the player renders on the GPU, instead of creating the render options just to find out from a failed status. system() asks the player, which reports the renderer drawing at that moment.

    const { rendering } = await plugin.app.system();
    if (rendering === "gpu") {
    const render = plugin.video.render(); // one handle, kept
    plugin.commands.add({
    id: "hdr",
    path: ["@video", "HDR Tone Mapping"],
    run: () => render.set({ toneMapping: "bt.2390", targetPeak: 250 }),
    });
    }

    0.5.12

    1.5.34

    renderingReason?: RenderingReason

    Why SystemInfo.rendering is what it is now: the same reason as RenderingState.reason (default, no-gpu-backend, preference, denylist, window-fallback…, see RenderingReasonCode). Read at each call, like rendering.

    Absent (undefined) on players before 0.5.13.

    An About page explains a software renderer with the player's own words, for example that the graphics driver is on the player's denylist. system() reports the renderer and its reason together; the message is English text that may name the adapter and the driver version.

    const { rendering, renderingReason } = await plugin.app.system();
    if (rendering === "software" && renderingReason)
    console.log(`Rendering: software (${renderingReason.message})`);

    0.5.13

    1.5.35