IVideoSlots

interface
Component Slots

Slot signatures for OrigamVideo. Four slots let consumers replace the entire controls toolbar, the poster overlay, the loading overlay, and the error overlay.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

controls
(bindings: IVideoScopedSlotBindings) => any
Full toolbar replacement. Receives the runtime state + the imperative methods.
poster
() => any
Overlay rendered while playback has not yet started. When omitted, the component paints the poster image via the native attribute.
loading
() => any
Overlay rendered while the media is loading.
error
(bindings: { error: MediaError | Error }) => any
Overlay rendered when an error occurred.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom error overlay using the #error slot

html