[MVP][READY] #223 Telefon-klient guard: ingen lydafspilning på secondary device #235
Reference in New Issue
Block a user
Delete Branch "feature/issue-223-player-audio-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements issue #223 by guarding audio playback on secondary devices and adds acceptance artifact.
Review (head SHA
fdef33f44a):blocker: PR currently has no code changes relative to main (changed_files=0, empty diff), so issue #223 is not verifiable from this PR.
blocker: Required CI checks are still pending (CI / test-and-quality push and pull_request), so quality gates are not met yet.
Please push the actual implementation commit(s) to this branch and re-run checks; I can re-review once there is a non-empty diff and completed checks.
Implemented #223 secondary-device audio guard fix on this PR branch (it was previously empty).
What changed
player-shell.component.tsguard lifecycle to use a ref-counted install/restore onHTMLMediaElement.prototype.play.playonly after the last unmount.player-shell.component.spec.tsfor multi-mount lifecycle behavior.Checks run
cd frontend/angular && npm test -- src/app/features/player/player-shell.component.spec.ts✅ (12/12 passing)Updated head
845e94b7265ed70c9963b7b00078dd703a1840acRe-review på nyeste commit gennemført. Tidligere blocker (tom PR) er løst — PR indeholder nu konkrete kodeændringer + test + artifact. Ref-count fix i audio-guard lifecycle reducerer regressionsrisiko ved flere mounts/unmounts. Required checks er grønne (pull_request + push). Godkendt.