Browser DOMException: NotAllowedError — `play()` Failed Because User Didn’t Interact
Browsers block unmuted `<video>`/`<audio>` autoplay without a prior user gesture.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Browser DOMException
Platform: Web
Common Root Causes:
- Browsers block unmuted `<video>`/`<audio>` autoplay without a prior user gesture.
Interactive Diagnostic Checklist
Verified Solutions:
- Mute autoplay videos (`muted playsinline`) or trigger audio playback inside a click handler.
Safe Diagnostic Command:
Check DevTools Console for autoplay policy warning
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Browsers block unmuted `<video>`/`<audio>` autoplay without a prior user gesture. Recommended diagnostic: `Check DevTools Console for autoplay policy warning`. Remediation: Mute autoplay videos (`muted playsinline`) or trigger audio playback inside a click handler.
Worked Examples
- Run `Check DevTools Console for autoplay policy warning` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-web-autoplay-notallowederror · Independently verified: 2026-11-25