Rule
Auto-playing audio control
Auto-playing audio must be stoppable or muted.
- Rule
audio-control- WCAG 2.2
- 1.4.2 Audio Control (opens in a new tab) (Level A)
- Severity
- Critical
What it checks
Looks at every <audio> and <video> with autoplay. It passes when the media is muted, has its volume at zero, shows native controls, or is a clip of three seconds or less that does not loop. A video that has played for a second without decoding any sound also passes.
When a person decides
This rule never fails on its own. Media that starts by itself, with no controls and no muting, is sent for review, because the markup cannot show two things a failure needs: that the media has sound at all, and that the page has no pause, stop or volume control somewhere else. A person checks both. When the length has not loaded yet, the review also asks how long the media plays.
Example
Sent to review
<audio src="welcome.mp3" autoplay loop></audio>
Passes
<audio src="welcome.mp3" autoplay loop controls></audio>
The engine is tested against both examples.
How to fix it
Do not start sound automatically. If it must start, add controls, or put a pause or stop button near the top of the page, before the media.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.