# ClickView Player

The video player consumed by all ClickView projects.

## Development

```bash
# Build + watch (from monorepo root)
npm run player

# Build only
npm run build-player

# Unit tests
npm run test-player
```

## Test Harness

The test harness loads the built UMD player bundles (`dist/`) in a plain browser page — the same loading path used by the Android WebView. It is useful for testing the player in isolation without a backend or a host application.

```bash
# From monorepo root
npm run test-harness-player

# From this directory
npm run test-harness
```

This builds the player and interactive-player UMD bundles, then starts a Vite dev server serving the `test-harness/` directory. Open the landing page and choose either:

- **Player** — loads `dist/player/player.js` and tests the `CVPlayer.Player` constructor
- **Interactive Player** — loads `dist/interactive-player/interactive-player.js` and tests the `CVPlayer.InteractivePlayer` constructor

Each page prompts for a `viewKey` and API URL, which are persisted to localStorage between sessions.
