Files
weirsoe-party-protocol/docs/ISSUE-223-PLAYER-AUDIO-GUARD-ARTIFACT.md
DEV-bot fdef33f44a
All checks were successful
CI / test-and-quality (push) Successful in 3m2s
CI / test-and-quality (pull_request) Successful in 2m57s
docs(issue-223): add audio guard acceptance artifact
2026-03-01 22:43:32 +00:00

1.1 KiB

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).