# MediaPlayer

Playback handed to the browser's accessible controls.

- Family: Content, imported from `mizu-ui` or `mizu-ui/content`
- Docs: https://mizu.user64bit.world/components/media-player
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/content/Media.tsx

## Usage

```tsx
import { MediaPlayer } from "mizu-ui";

export function Example() {
  const src = "/audio/calibration.wav";
  return (
    <MediaPlayer
      kind="audio"
      label="A four-second calibration tone"
      src={src}
      preload="metadata"
    />
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/media-player
```

## Props

- `kind`: `"audio" | "video"` (default `"video"`). Native media element.
- `label`: `string`. Figure and player name.
- `src`: `string`. Playable media URL. The example uses public/audio/calibration.wav from this repository; copy it to your app's public/audio folder or supply your own source. The npm package and registry do not install media assets.
- `...props / children`: `VideoHTMLAttributes / ReactNode`. Native source, poster, tracks, events; children may include caption tracks.

## Accessibility

Native controls support keyboard and touch. Provide captions/transcripts for speech and video. Autoplay is opt-in through native props.

## Motion

Playback follows user intent; no synthetic timer.
