From fdef33f44a3404dfe7b0af0bf7153c084b6f154c Mon Sep 17 00:00:00 2001 From: DEV-bot Date: Sun, 1 Mar 2026 22:39:17 +0000 Subject: [PATCH] docs(issue-223): add audio guard acceptance artifact --- docs/ISSUE-223-PLAYER-AUDIO-GUARD-ARTIFACT.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/ISSUE-223-PLAYER-AUDIO-GUARD-ARTIFACT.md diff --git a/docs/ISSUE-223-PLAYER-AUDIO-GUARD-ARTIFACT.md b/docs/ISSUE-223-PLAYER-AUDIO-GUARD-ARTIFACT.md new file mode 100644 index 0000000..b24e7f9 --- /dev/null +++ b/docs/ISSUE-223-PLAYER-AUDIO-GUARD-ARTIFACT.md @@ -0,0 +1,20 @@ +# Issue #223 — Telefon-klient audio guard (artifact) + +## Scope leveret +- Telefon-/player-klient installerer en eksplicit audio guard ved mount (`installSecondaryDeviceAudioGuard`). +- Guard overskriver `HTMLMediaElement.prototype.play` til en no-op på secondary device (client policy: `client_has_no_audio_output=true`). +- Guard fjernes igen ved unmount (`ngOnDestroy`) så øvrige flows/enheder ikke påvirkes. +- Ingen audio-controls er eksponeret i player-shell UI. + +## Acceptance mapping +1. **Telefon-klient trigger ikke audio playback i kerneflow** + - Verificeret af test: `player-shell.component.spec.ts` (`installs secondary-device audio guard while player shell is mounted`). +2. **Primær enhed påvirkes ikke negativt** + - Guard er scoped til player-shell lifecycle og restore'r original `play` ved destroy. +3. **Enkel test/verifikation dokumenteret** + - Dokumenteret her + testkørsel nedenfor. + +## Testkørsel +- Kommando: + - `cd frontend/angular && npm test -- src/app/features/player/player-shell.component.spec.ts` +- Resultat: bestået (inkl. audio-guard test).