Commit Graph
2 Commits
Author SHA1 Message Date
bvandeusenandClaude Opus 5.5 6dda9ef219 fix(web): the app opens over plain HTTP on a home network instead of showing a blank page
Browsers offer crypto.randomUUID only on HTTPS pages and localhost. The
player's client id called it at startup, so opening Minstrel at
http://<host>:4533, as the README's quick start says to, threw before
anything rendered. The id now falls back to crypto.getRandomValues,
which every page has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:01:35 -05:00
bvandeusen b6f8a0c390 feat(web): events dispatcher posts to /api/events on player transitions
useEventsDispatcher subscribes to player.current/state via \$effect:
on first transition to playing for a new track, POSTs play_started
and caches the id; on track-id change while a play is open, closes
the prior row as play_skipped; on natural completion (state
playing→paused with position >= duration > 0), POSTs play_ended;
on pagehide, navigator.sendBeacon fires a final play_skipped.
Stable per-tab client_id from sessionStorage.
2026-04-26 09:42:11 -04:00