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

    Interface VideoView

    The display layer, from plugin.video.view().

    Single owner: the first plugin to call view() owns it; another plugin's handle reports failed (conflict) and retries on each set. Values persist across sources (reset them yourself on a new sourceId if needed); disposing or stopping the owner restores the defaults. Out-of-range values or unknown fields fail with invalid without sending anything.

    The video fills the video area (cropped instead of letterboxed), then zooms to 150 % shifted a little to the right. The first plugin to call view() owns the display layer; each set merges into its settings, which stay across sources until the plugin disposes the view or stops.

    const view = plugin.video.view();
    view.set({ fit: "fill" });
    view.set({ zoom: 1.5, panX: 0.1 }); // merged with the previous write

    Not part of snapshots or exports: it changes how the picture sits in the video area, not the picture. set merges into the current settings and never throws: an out-of-range value or unknown field shows as failed (invalid) in status and is reported to onError, without sending anything.

    1.0.0

    interface VideoView {
        dispose(): Promise<void>;
        set(value: Partial<ViewSettings>): void;
        status: FilterStatus;
        onStatus(listener: (status: FilterStatus) => void): Disposable;
    }

    Hierarchy (View Summary)

    Index
    • Release the resource. Resolves once the player confirmed the release (or immediately for purely local resources). Never rejects.

      Returns Promise<void>

      Never.

      A "Turn feature off" item removes the feature's own menu item at once, before the plugin stops. dispose takes the command out of the menu and the binding table and resolves once the player confirmed it; the id can be added again later.

      const extra = plugin.commands.add({ id: "extra", path: ["Tools", "Extra"], run() {} });
      plugin.commands.add({
      id: "extra-off",
      path: ["Tools", "Turn extra off"],
      run: () => extra.dispose(), // never rejects
      });

      1.0.0

    • Merged into the current settings; last write wins.

      Parameters

      Returns void

      A 4:3 video fills a 16:9 window, distorted, as the user asked. Each set merges the given fields into this plugin's view settings; the newest write wins, and the settings stay for later files until the plugin disposes the view or stops.

      plugin.video.view().set({ fit: "stretch" });
      

      1.0.0

    • The status changed.

      Parameters

      Returns Disposable

      When another plugin already controls the display layer, the OSD says so. The first plugin to call view() owns it; this plugin's handle then reports failed with conflict, and tries again on its next set.

      const view = plugin.video.view();
      view.onStatus((status) => {
      if (status.state === "failed" && status.error.code === "conflict")
      void plugin.osd.show("Another plugin controls the picture size");
      });

      1.0.0

    status: FilterStatus

    Current status (the same four states as filters).