1 viewer
Component · Content
MediaPlayer
Server-rendered <audio>/<video> mount with placeholder, aspect, and HLS/MJPEG enhancement via window.CRE8_MEDIA.
- Category
- Content
- Slots
- 3
- States
- 4
- Writer
- Shared
Preview
No source selected.
<MediaPlayer aspect="16:9" kind="video" title="Lobby stream" />
Anatomy
The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.
| Slot | DOM class |
|---|---|
| root | .primitive-media-wrap |
| media | — |
| placeholder | — |
States and platforms
The states the contract publishes, the platforms it declares, and the style recipes that dress it.
States
Platforms
Recipes
Renderers
Every tag in the example above renders through a shared writer.
Declared adapters. A status is the manifest's declaration, not a measured parity result.
| Target | Renderer | Status |
|---|---|---|
| web | react | experimental |
| runtime-node | view-node | ready |
| ssr | html-semantic | ready |
| terminal | terminal-text | planned |
Accessibility
Uses native <audio>/<video> semantics with a visible fallback span that stays announced when no source can play.
- Sources surface through native <source> children so the browser exposes controls and quality picking.
- Empty source lists still expose a placeholder span readable by assistive technology.
- When delegating to the global CRE8_MEDIA helper, the wrapper retains data-cre8-media-player so hydrators can locate the host element.