IVideoScopedSlotBindings

interface
Component Slots

Bindings passed to the #controls scoped slot of OrigamVideo. The default toolbar is built on top of the exact same surface, so a consumer who replaces the slot has access to the full state machine without re-implementing event listeners.

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.

playing
requis
boolean
True while the <video> is decoding frames and producing audio.
paused
requis
boolean
True when playback is paused (or has not started yet).
currentTime
requis
number
Current playhead position in seconds.
duration
requis
number
Total duration in seconds. NaN until metadata is loaded.
buffered
requis
number
End of the buffered range in seconds.
volume
requis
number
Volume between 0 and 1 — independent from muted.
muted
requis
boolean
True when the output is muted. Independent from volume.
fullscreen
requis
boolean
True when the element (or wrapper) is in fullscreen.
pip
requis
boolean
True when the video is in picture-in-picture.
loading
requis
boolean
True between loadstart and loadedmetadata — used by the loader overlay.
error
requis
MediaError | Error | null
Set to the most recent media error (if any), else null.
playbackRate
requis
number
Current playback rate (1 = normal).
remoteAvailable
requis
boolean
True when at least one Remote Playback target is available on the network.
remoteState
requis
'disconnected' | 'connecting' | 'connected'
Connection lifecycle from the Remote Playback API.
methods
requis
IVideoPlayerMethods
Imperative actions — wired to the underlying <video> element.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Rendering a custom controls bar with scoped slot bindings

html