mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 20:39:18 +00:00
a6a4d5d89e
Adds an opt-in "Play sound on timer end" option to the timer view, which sounds the bundled buzzer when the timer transitions into overtime. Browsers reject audio playback until the document has been interacted with, and that permission is lost on every page load. Since a timer screen is typically left unattended this would fail silently, so the audio element is primed on the first interaction with the page and the view shows a hint while it is still blocked. The hint is tied to mouse movement, which does not itself grant playback permission, so it stays off screen unless somebody is at the machine to act on it. Off by default, and inert when off: no audio element is created and no listeners are registered. The change is contained to the timer view. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np5ZL4TnZSutqA1Lqzm5Gq