The operating system, the displays and the renderer, read when called
(displays come and go; the renderer can fall back from GPU to software
once). CPU and memory: Node's os module.
The plugin sizes its picture for the primary display. system() asks
the player; displays lists the displays present now, the primary one
first (empty without a user interface).
const { displays } = await plugin.app.system();
const primary = displays[0];
if (primary) console.log(primary.width, primary.height);
Open the files in a new temporary window: a second player with a temporary profile (AppInfo.temporary) that plays the first file and lists them all. Resolves once its process started, with its process id. Built-in plugins only.
1 to 64 absolute paths of existing files, in play order.
The playlist's Play in New Window. The new window is a separate player process and keeps running after this one quits; it shares nothing with the calling plugin.
The playlist's row menu opens the selected local files in a temporary window, which plays them without changing the main window's list or settings.
try {
const { pid } = await plugin.app.openWindow(selected.slice(0, 64));
console.log("temporary window", pid);
} catch (error) {
// `builtin-only`: not a built-in plugin; `unsupported`: macOS.
if ((error as PluginError).code !== "builtin-only") throw error;
}
ReadonlyversionThe player's version, e.g. "0.7.1". This is the player's release version
(the version of the published release), which can differ from the version
of the host binary inside it. The player compares minPlayerVersion with
this value, and plugins compare with it too.
ReadonlybuildShort git hash of the build, null when unknown.
ReadonlycomponentsVersions of the player's main components.
Optional Readonlytemporarytrue when this player is a temporary window (a guest, like a
browser's guest window): a second player the main one started with
App.openWindow (the playlist's Play in New Window), or one the
user started with --guest. Absent in the main player and in a player
before 0.10.3.
A temporary window runs with a temporary profile that is deleted when
it closes. Only the player's own settings (look, language, keys,
rendering, window layout) are copied from the main window. A plugin's
data directory (its options, history and lists included) and its
session storage start empty and are discarded when the window closes;
nothing a plugin writes reaches the main window. The plugin library and the keychain are
the main window's, read-only: Secrets.get reads the main
window's values, while Secrets.set, Secrets.delete,
PackageCandidate.install, Packages.uninstall and
Packages.setEnabled reject with unavailable. A plugin that
does background work for the user's profile (an automatic update
check, a sync) skips it here; work the user starts still runs.
plugin.app: the fixed facts plus the system, read on request.Example: Describe the player and the system for a bug report
The plugin builds a line such as "Vestra 0.5.10 on macOS 26.2" to copy into a bug report.
app.versionis known from the start; eachsystem()call asks the player, which reads the displays at that moment. The operating system's name and version it works out once, at the first call, and reuses them.Remarks
plugin.appholds facts fixed for the player's run (its version, build, library versions) and reads the system's on request:system()reads the displays at each call; the operating system's name and version are worked out once, at the first call, and reused.Since
1.0.0