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

    Module @vestra-player/sdk

    The Vestra Player plugin API (apiVersion: "vestra/1"), types only.

    A plugin's entry module default-exports activate. The player creates the Plugin object and passes it in; a plugin never imports SDK code at run time (a built plugin contains only its own code, and vestra-plugin build fails on a runtime import of this package), so import with import type.

    Start with Plugin and Scope: every module (plugin.commands, plugin.player, plugin.windows…) hangs off them. Errors are described at PluginError. Tests use @vestra-player/sdk/testing.

    The player gets a Tools ▸ Hello menu item; picking it shows "Hello" on the video. The player imports the entry module and calls activate with the plugin's Plugin object; commands.add registers the item, and the player calls run when the user picks it or presses a key bound to it.

    import type { Plugin } from "@vestra-player/sdk";

    export default async function activate(plugin: Plugin) {
    plugin.commands.add({
    id: "hello",
    path: ["Tools", "Hello"],
    run: () => plugin.osd.show("Hello"),
    });
    }
    CommandState
    Bindable
    Condition
    When
    PositionRange
    TriggerEvent
    Trigger
    BarButtonIcon
    CommandButton
    CommandOptions
    Command
    Commands
    CommandRunOptions
    CommandRunResult
    CommandList
    CommandInfo
    Palette
    PaletteLeadOptions
    PaletteLeadRun
    PaletteLead
    HostAction
    Host
    BindingRef
    BindingInfo
    Bindings
    CaptureOptions
    Snapshot
    ExportOptions
    ExportEncoding
    JobState
    ExportJob
    MediaCapture
    SourceReference
    MediaSources
    ExportPart
    PartsExportOptions
    ExportCheck
    PackageManifest
    PackageSource
    InstallOptions
    PackageCandidate
    PackageChangeStatus
    PackageChange
    PluginInfo
    PluginDisplay
    PluginWarning
    Packages
    CommandKeys
    MarkKind
    TimelineMark
    RangeStyle
    TimelineRange
    TimelineLayer
    Timeline
    AudioTrack
    PlayerState
    AudioDevice
    Chapter
    Conditional
    Media
    Scrub
    StreamFrame
    StreamOptions
    StreamStartError
    Stream
    SequenceProvider
    PlaybackStats
    StateStream
    Player
    HostEvent
    EventPayloads
    EventPayload
    SourceEvent
    SourceEventPayloads
    FactEvent
    FactEventPayloads
    MpvValue
    Mpv
    PackageInfo
    WireSource
    WindowFacts
    WireMark
    WireRange
    WireTimeline
    WireRenderingReason
    WireUpscalingReason
    WireUpscalingState
    WireMotionState
    Disposable
    PluginError
    Scope
    Plugin
    StopReason
    DisposeInfo
    WindowState
    MainWindow
    AppInfo
    App
    SystemInfo
    DisplayInfo
    Wire
    WireView
    WireCommands
    WireCommandOptions
    WireCommandState
    WireCommand
    Json
    RowOp
    PropertyWrite
    FilterStatus
    VideoFilter
    AudioFilter
    ViewSettings
    VideoView
    RenderSettings
    RenderOptions
    VideoShaders
    UpscalingReasonCode
    UpscalingReason
    UpscalingDecodingCause
    UpscalingPlugin
    UpscalingVideoSize
    UpscalingState
    VideoUpscaling
    MotionEngine
    MotionMode
    MotionReasonCode
    MotionReason
    MotionState
    VideoMotion
    VideoNode
    ConvolutionPlane
    AudioNode
    Clipboard
    Power
    ToolResult
    Tools
    JsonStore
    Storage
    SessionStorage
    System
    Secrets
    RenderingMode
    RenderingPreference
    RenderingReasonCode
    RenderingReason
    RenderingState
    Rendering
    ResolverOptions
    WebResolverOptions
    FileResolverOptions
    ResolvedStream
    Resolver
    Resolvers
    ResolvedMedia
    SubtitleTrack
    SubtitlesState
    SubtitleConditional
    Subtitles
    SubtitleStyle
    ImageRef
    ImageOptions
    MarkdownRef
    MarkdownOptions
    PropValue
    PropData
    Props
    Ui
    View
    Window
    Windows
    SlotState
    LayoutPosition
    SlotPanel
    PanelState
    PanelSlot
    SidebarSlot
    Panel
    DropModifiers
    DropHandler
    Drops
    ThemeId
    Appearance
    Locale
    LanguagePreference
    TemplateArgs
    Text
    TextList
    ListStyle
    TextArg
    TextValue
    I18n
    TextError
    SettingsCategory
    SettingsPage
    Settings
    BackdropSlot
    Panels
    ConfirmOptions
    Dialogs
    OsdPanel
    OsdPanelOptions
    Osd
    OsdAction
    OsdShowOptions