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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

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.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Custom error overlay using the #error slot

html