Skip to content

@videts/vide


@videts/vide / ui

ui

Interfaces

InterfaceDescription
AdUIStateShared mutable state for ad UI components. Set by uiAdPlugin, read by ad components.
AdUIStateRefMutable holder for AdUIState, shared between ad-plugin and ad UI components.
UIComponentA single UI component that can be independently mounted and connected.
UiPluginUI plugin return type, with getAdPlugin() for VAST/VMAP integration.
UiPluginOptionsOptions for the ui() convenience plugin.

Type Aliases

Type AliasDescription
UIComponentNameComponent names that can be excluded from the ui() convenience plugin.

Functions

FunctionDescription
connectStateClassesSubscribe to statechange and toggle CSS modifier classes on the root element. Returns a cleanup function.
createAdCountdown-
createAdLabel-
createAdLearnMore-
createAdOverlay-
createAdSkip-
createAdUIStateCreate a shared mutable holder for ad UI state.
createAutohide-
createBigPlay-
createClickPlay-
createErrorDisplay-
createFullscreen-
createKeyboard-
createLoader-
createPlayButton-
createPoster-
createProgress-
createTimeDisplay-
createVolume-
formatTimeFormat seconds as M:SS or H:MM:SS. Returns "0:00" for NaN/negative.
isAdStateWhether the given state is an ad state.
stateToClassConvert a PlayerState to a CSS modifier class on the vide-ui root.
uiCreate the UI convenience plugin. Mounts all components (minus excluded).
uiAdPluginCreate an AdPlugin that bridges VAST ad data into the UI's shared ad state.