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

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.

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 }.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Injecting a custom header and extra right controls

vue