docs(media-player): la pestana API de la demo se habia quedado rancia

Tres desfases, todos de hoy:

- La lista de partes se quedo en las 16 originales: le faltaban las seis del
  modo audio (Artwork · Artist · Identity · Transport · RateButton ·
  LiveIndicator · AudioLayout), los dos floats eidos-only (VolumeFloat ·
  RateFloat) y las dos nuevas del transporte. Ademas ahora dice que
  RestartButton y SkipButton son OPT-IN, que es la parte que un consumidor no
  puede adivinar.
- La tabla de props no mencionaba ninguno de los seis callbacks nuevos. Van con
  las dos divergencias declaradas (el `pause` del final natural no se reporta;
  `onEnded` si dispara para un final por salto) y con la regla de que una
  direccion sin manejador se pinta deshabilitada.
- «The settings menu (speed / quality / track) is the remaining v2 item» ya no
  era cierto: la velocidad tiene lista propia desde `ee51172d8`, asi que al
  menu de ajustes solo le quedan calidad y pista.

Medido en el navegador: la tabla no desborda su contenedor (864 de 865) y la
pagina no gana scroll horizontal.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
alpha-0.1-dir-prefs
dev 2 months ago
parent 76f441882c
commit 52fd56c9f3

@ -588,6 +588,25 @@
>"Media player"</td
><td>Accessible name for the player region.</td></tr
>
<tr
><td class="name">onPlay · onPause · onEnded · onError</td><td class="type"
>() =&gt; void</td
><td class="default empty">—</td><td
>Playback lifecycle for the app. They ride the <em>element's</em> events, so a
hotkey, a tap and the OS media keys all land once. The <code>pause</code> that rides
the natural end is not reported; <code>onEnded</code> does fire for an end reached by
scrubbing.</td
></tr
>
<tr
><td class="name">onPrevious · onNext</td><td class="type">() =&gt; void</td><td
class="default empty">—</td
><td
>Requests for a different <em>source</em>, from the SkipButtons. The player owns no
queue: it asks, you swap the <code>src</code>. A direction with no handler renders
its button disabled — which is also how the ends of a queue read.</td
></tr
>
<tr
><td class="name"
>Media · src/poster <span data-uix-tag data-kind="soma">soma</span></td
@ -600,17 +619,24 @@
</div>
<p data-uix-section-desc style="margin-top: var(--uix-space-3);">
Parts: <code
>Media · Poster · BufferingIndicator · Controls · PlayButton · SeekButton · MuteButton ·
VolumeSlider · TimeSlider · Time · CaptionButton · Captions · PipButton · FullscreenButton
· Title · DefaultControls</code
>. Title · PiP · auto-hide · tap-to-play are wired.
>Media · Poster · BufferingIndicator · Controls · PlayButton · SeekButton · RestartButton
· SkipButton · MuteButton · VolumeSlider · TimeSlider · Time · CaptionButton · Captions ·
PipButton · FullscreenButton · Title · DefaultControls</code
>, plus the audio-mode set
<code
>Artwork · Artist · Identity · Transport · RateButton · LiveIndicator · AudioLayout</code
>
and the two eidos-only floats <code>VolumeFloat · RateFloat</code>. Title · PiP · auto-hide
· tap-to-play are wired. <strong>RestartButton and SkipButton are opt-in</strong>: the
default layouts do not compose them, and a skip direction with no handler renders disabled.
<strong>Captions are painted by the player</strong>: the active track is kept
<code>hidden</code>, so the browser parses the cues and fires <code>cuechange</code> but
draws nothing, and the text lands in the
<code>Captions</code>
part — clear of the control bar, which is exactly where the native cue box would sit. Cue positioning
(<code>line</code>/<code>position</code>/<code>align</code>) is not honored. The settings
menu (speed / quality / track) is the remaining v2 item.
(<code>line</code>/<code>position</code>/<code>align</code>) is not honored. Playback speed
now has its own floating list (<code>RateFloat</code>), so the remaining v2 item is the
settings menu for <em>quality and track</em> only.
</p>
</section>
{/if}

Loading…
Cancel
Save

Powered by TurnKey Linux.