ReadonlyosThe operating system family.
ReadonlynameProduct name: macOS, Windows 11, …
Readonlyversion26.2 (macOS), 23H2 (Windows); null when unknown.
Readonlybuild25C56 (macOS), 22631.4460 (Windows); null when unknown.
ReadonlymodelHardware model (Mac15,6, the firmware's product name); null when unknown.
ReadonlyarchCPU architecture of the player build: aarch64, x86_64, …
ReadonlydisplaysPrimary display first; empty without a user interface.
Optional ReadonlyrenderingWhich 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 }),
});
}
Optional ReadonlyrenderingWhy 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})`);
What App.system reports.
See
App.system
Since
1.0.0