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.
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.
- playingrequisboolean
- True while the <video> is decoding frames and producing audio.
- pausedrequisboolean
- True when playback is paused (or has not started yet).
- currentTimerequisnumber
- Current playhead position in seconds.
- durationrequisnumber
- Total duration in seconds. NaN until metadata is loaded.
- bufferedrequisnumber
- End of the buffered range in seconds.
- volumerequisnumber
- Volume between 0 and 1 — independent from muted.
- mutedrequisboolean
- True when the output is muted. Independent from volume.
- fullscreenrequisboolean
- True when the element (or wrapper) is in fullscreen.
- piprequisboolean
- True when the video is in picture-in-picture.
- loadingrequisboolean
- True between loadstart and loadedmetadata — used by the loader overlay.
- errorrequisMediaError | Error | null
- Set to the most recent media error (if any), else null.
- playbackRaterequisnumber
- Current playback rate (1 = normal).
- remoteAvailablerequisboolean
- True when at least one Remote Playback target is available on the network.
- remoteStaterequis'disconnected' | 'connecting' | 'connected'
- Connection lifecycle from the Remote Playback API.
- methodsrequisIVideoPlayerMethods
- 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