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

    Interface EventPayloads

    The data each HostEvent carries, as the player sends it: the listener of Player.on gets a copy.

    These are the player's wire shapes, not the SDK's views of them: field names and units are the player's (source.state names the source generation stamp.generation, where PlayerState says sourceId). They follow the player's protocol and can gain fields with a player version.

    1.7.0

    interface EventPayloads {
        "source.state": SourceState;
        "playback.backend": { currentSession: number; event: string };
        "window.state": WindowFacts;
        "packages.changed": PackageInfo[];
        "bindings.changed": null;
        "commands.keys": CommandKeys;
        "timeline.changed": WireTimeline;
        "appearance.changed": { theme: string; language?: string };
        "resolvers.fileTypes": { fileTypes: string[] };
        "video.upscaling.changed": Omit<WireUpscalingState, "enabled">;
        "video.motion.changed": Omit<WireMotionState, "mode">;
    }
    Index
    "source.state": SourceState

    The player's source: phase, position, rate, volume, its stamp (what PlayerState is made from).

    "playback.backend": { currentSession: number; event: string }

    A playback backend event: the backend's name for it (event) and the source generation it belongs to.

    Type Declaration

    • currentSession: number

      The source generation it belongs to.

    • event: string

      The backend's name for the event.

    "window.state": WindowFacts

    The main window: fullscreen, maximized, video area, picture-in-picture (what WindowState is made from).

    "packages.changed": PackageInfo[]

    Every installed plugin, after an install, an uninstall or a change of one.

    "bindings.changed": null

    A key binding changed somewhere; read them again with plugin.bindings.list().

    "commands.keys": CommandKeys

    The key labels of this plugin's own commands, with the binding table's revision.

    "timeline.changed": WireTimeline

    Every timeline mark and range, after any plugin or the player changed one.

    "appearance.changed": { theme: string; language?: string }

    The palette changed (theme), or the interface language the user saved (language; the oldest players send no language).

    Type Declaration

    • theme: string

      The palette now (ThemeId; a newer player may name one this SDK does not list).

    • Optionallanguage?: string

      The interface language the user saved, "system" or a locale (absent from the oldest players).

    "resolvers.fileTypes": { fileTypes: string[] }

    The file extensions the plugins' file resolvers claim now.

    Type Declaration

    • fileTypes: string[]

      The extensions, lower case without the dot.

    "video.upscaling.changed": Omit<WireUpscalingState, "enabled">

    The AI upscaling state, without this plugin's own enabled.

    "video.motion.changed": Omit<WireMotionState, "mode">

    Motion smoothing's state, without this plugin's own mode.