@clickview/player
v1.46.0
Published
ClickView Player
Downloads
3
Maintainers
Keywords
Readme
ClickView Player
The video player consumed by all ClickView projects.
Development
# Build + watch (from monorepo root)
npm run player
# Build only
npm run build-player
# Unit tests
npm run test-playerTest 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.
# From monorepo root
npm run test-harness-player
# From this directory
npm run test-harnessThis 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.jsand tests theCVPlayer.Playerconstructor - Interactive Player — loads
dist/interactive-player/interactive-player.jsand tests theCVPlayer.InteractivePlayerconstructor
Each page prompts for a viewKey and API URL, which are persisted to localStorage between sessions.
