Const"Copy Snapshot" appears in Tools ▸ Snapshot ▸ next to the built-in
capture plugin's items. Paths merge by their English keys, so a command
whose path starts with the submenu's keys (["Tools", "Snapshot"]) lands
in the same submenu whatever the interface language.
import { BUILTIN_SUBMENUS } from "@vestra-player/sdk/testing";
const snapshot = BUILTIN_SUBMENUS.find((menu) => menu.path.at(-1) === "Snapshot")!;
plugin.commands.add({
id: "snapshot-to-clipboard",
// ["Tools", "Snapshot", "Copy Snapshot"]
path: [...snapshot.path, "Copy Snapshot"],
run: copySnapshot,
});
The submenus the player's built-in plugins declare, by key path, in menu order (built-in menus as in MENU_IDS, then top-level submenus). Menu paths merge by their English key, so a command whose path starts with the same keys appears in the same submenu, whatever the interface language; the submenu's title is the declaring plugin's translation. The player's own submenus (
Playback ▸ Speed,Playback ▸ Seek) are not listed.A snapshot of the player's built-in submenus at this SDK release; the player may differ between SDK releases. The player's tests check that this list agrees with what its built-in plugins declare when the SDK is released.