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
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- playingrequiredboolean
- True while the <video> is decoding frames and producing audio.
- pausedrequiredboolean
- True when playback is paused (or has not started yet).
- currentTimerequirednumber
- Current playhead position in seconds.
- durationrequirednumber
- Total duration in seconds. NaN until metadata is loaded.
- bufferedrequirednumber
- End of the buffered range in seconds.
- volumerequirednumber
- Volume between 0 and 1 — independent from muted.
- mutedrequiredboolean
- True when the output is muted. Independent from volume.
- fullscreenrequiredboolean
- True when the element (or wrapper) is in fullscreen.
- piprequiredboolean
- True when the video is in picture-in-picture.
- loadingrequiredboolean
- True between loadstart and loadedmetadata — used by the loader overlay.
- errorrequiredMediaError | Error | null
- Set to the most recent media error (if any), else null.
- playbackRaterequirednumber
- Current playback rate (1 = normal).
- remoteAvailablerequiredboolean
- True when at least one Remote Playback target is available on the network.
- remoteStaterequired'disconnected' | 'connecting' | 'connected'
- Connection lifecycle from the Remote Playback API.
- methodsrequiredIVideoPlayerMethods
- Imperative actions — wired to the underlying <video> element.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Rendering a custom controls bar with scoped slot bindings