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

    Interface AppInfo

    plugin.app: fixed for the life of the plugin process.

    1.0.0

    interface AppInfo {
        version: string;
        build: string | null;
        components: {
            mpv: string | null;
            libav: Readonly<Record<string, string>>;
            slint: string;
        };
        temporary?: boolean;
    }

    Hierarchy (View Summary)

    Index
    version: string

    The 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.

    build: string | null

    Short git hash of the build, null when unknown.

    components: {
        mpv: string | null;
        libav: Readonly<Record<string, string>>;
        slint: string;
    }

    Versions of the player's main components.

    Type Declaration

    • Readonlympv: string | null

      libmpv's mpv-version.

    • Readonlylibav: Readonly<Record<string, string>>

      { ffmpeg: <ffmpeg-version> } (what libmpv reports).

    • Readonlyslint: string

      The linked Slint version, e.g. "1.18.1".

    temporary?: boolean

    true 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.

    The main window checks for updates once a day; a temporary window leaves it to the main one. A check the user asks for still runs.

    if (!plugin.app.temporary) void checkForUpdates();
    

    0.10.3

    1.10.1