IMediaControllerSlots
interface
Slots
Scoped slots exposed by <OrigamMediaController>. Consumers inject media-specific blocks: OrigamAudio injects header + waveform + footer; OrigamVideo injects captions/PiP/fullscreen through extraControlsRight.
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.
- header() => any
- Block rendered ABOVE the scrubber row. OrigamAudio injects the cover + metadata strip here; OrigamVideo typically leaves it empty.
- waveform(bindings: { state: IMediaPlayerState; methods: IMediaPlayerMethods }) => any
- Replaces the default OrigamMediaScrubber scrubber row. Receives { state, methods } so the consumer can paint a custom scrubber (audio waveform) while still routing seeks through methods.seek.
- footer() => any
- Block rendered BELOW the transport row. OrigamAudio injects the playlist list here.
- 'prepend-transport'() => any
- 'append-transport'() => any
- extraControlsLeft() => any
- Additional buttons rendered on the left side of the toolbar, AFTER the time display. Legacy slot — prefer prepend-transport.
- extraControlsRight() => any
- Additional buttons rendered on the right side of the toolbar, BEFORE the config menu. OrigamVideo injects its captions / PiP / fullscreen buttons here.
- configExtra(bindings: { closeMenu: () => void }) => any
- Extra rows in the config menu (audio output device, subtitle track selector, ...). Receives { closeMenu }.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Injecting a custom header and extra right controls