Skip to content
easeweb
Search topics

Video players with no captions button in the control bar

A shop's own video player puts play and volume in its control bar, but captions and audio description three steps deep in a settings menu.

EN 301 549
Clause 7.3
Section 508
503.4.1503.4.2
Broken <button aria-label="Settings">
The accessibility problem illustrated: No hearing:Where is the captions button?
01

The problem

People who need captions or audio description have to know they are under a settings menu, and open three levels to turn them on

02

Try it

Turn on the captions, then the audio description. How many presses did each take?

On the broken side, both are under Settings, two menus deep, while play and volume are in the bar.

Apply the fix to get CC and AD buttons beside the volume. The panel under the player counts the presses each needs.

Broken Can you fix this?

BrokenCaptions and description inside Settings

How to brew our house blend

0:00 / 0:00

Presses from the player to turn on: Volume: 1 · Captions: 3 · Audio description: 3

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Give captions and audio description their own buttons

Before
BrokenCaptions and description inside Settings
<div class="player">  <video src="brew-guide.webm" poster="brew-guide.jpg">    <track kind="captions" srclang="en" label="English"      src="brew-guide.en.vtt">  </video>  <div class="player-bar">    <button type="button" aria-label="Play">…</button>    <input type="range" aria-label="Volume"      min="0" max="1" step="0.1" value="1">    <button type="button" aria-label="Settings"      aria-expanded="false" aria-controls="player-settings">…</button>    <button type="button" aria-label="Full screen">…</button>  </div>  <div id="player-settings" class="player-menu" hidden>    <!-- Opens a second menu: Off, English -->    <button type="button">Subtitles</button>    <!-- Opens a second menu: English; English, described -->    <button type="button">Audio</button>  </div></div>
What is wrong3 points

Every control works from the keyboard and has a name, so the player passes WCAG's checks on its controls. But.

  • Someone who needs captions has to press three times, through Settings and a second menu, where volume takes one.
  • Someone who needs audio description has to make the same three presses, through Settings and Audio.
  • Someone who doesn't think to open Settings may never learn that captions exist. Nothing in the bar shows that either is there.
After
FixCaptions and audio description buttons beside volume
<div class="player">  <video src="brew-guide.webm" poster="brew-guide.jpg">    <track kind="captions" srclang="en" label="English"      src="brew-guide.en.vtt">  </video>  <div class="player-bar">    <button type="button" aria-label="Play">…</button>    <input type="range" aria-label="Volume"      min="0" max="1" step="0.1" value="1">    <button type="button" class="captions"      aria-pressed="false">CC<span class="visually-hidden"> captions</span></button>    <button type="button" class="described"      aria-pressed="false">AD<span class="visually-hidden"> audio description</span></button>    <button type="button" aria-label="Settings"      aria-expanded="false" aria-controls="player-settings">…</button>    <button type="button" aria-label="Full screen">…</button>  </div>  …</div>
How it is fixed5 steps
  1. Add a CC button and an AD button to the bar, beside volume. Captions and audio description are now one press each, like play and volume, and the letters CC and AD show they are there.
  2. Make each a native button whose name starts with its visible letters, with the rest in hidden text, so speech input users can say "click CC".
  3. Give each aria-pressed, and update it on every press, so screen reader users are told whether it is on.
  4. Make CC show or hide the captions track.
  5. Make AD swap in the described version at the same place, as in videos without audio description of what they show; a player that switches between two audio tracks of one file can switch tracks instead.

This fixes the Before and meets Section 508 503.4.1 and EN 301 549 7.3. The Settings menu stays for the caption language and the caption style.

04

Design ideas

A sleek player can still put captions one press away

Four ways to draw the brewing video’s controls. Tab through each and turn captions on: three take one press, as volume does, and one keeps captions a menu deeper.

In the design file

  • Put captions and audio description beside volume, in every size of the player and in full screen.
  • Phone width: decide what moves into the ⋯ menu, and keep captions and audio description out of it.
  • Write the name a screen reader will say beside each icon, such as Captions and Audio description.

Passes

  • Captions and audio description written out Pills that say Captions and Audio description sit beside volume, white on the #1b1b1b bar at 17.22:1, so nobody has to know what CC and AD stand for. On, a pill fills yellow and gains a tick, so its state shows in shape as well as colour.
  • Mute and captions on the picture A short clip that plays without a bar keeps two round chips in the picture’s top corner, mute and CC side by side, so captions are exactly as close as sound. The chips are solid #1b1b1b, not see-through, so the white icons keep 17.22:1 over a light frame.
  • A phone-width bar, the rest under ⋯ At phone width the bar keeps play, mute, CC and AD, and moves speed, quality and picture in picture under ⋯. What the player can spare goes into the menu; captions and audio description stay one press away.

Fails

  • A minimal bar, captions under ⋯Section 508 503.4.1, EN 301 549 7.3 Play, mute and full screen in the bar, and everything else under ⋯, captions included: sound takes one press and captions two, so captions are not at the same level as volume. Chrome’s own video controls keep captions in their overflow menu the same way.
05

Verify the fix

4 checks, no mouse.

Test with: Keyboard, Screen reader, Zoom

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after updating the player or its plugin.

How screen readers handle aria-pressed

Limits

This is a starting pattern, not a guarantee for every application. The buttons only help when there is something behind them: captions that are right, covered in videos without captions, or with unchecked automatic ones, and a description that says what is shown. The player's other controls need names, state and keyboard support too, and a player with no way to turn on the captions or the described version at all, in its bar or in any menu, is a different failure, under EN 301 549 7.1.1 and 7.2.1 rather than 7.3: both are in videos a keyboard can't play, or with no captions button. EN 301 549 and the Trusted Tester tests for Section 508 ask this of players the site builds; test the complete journey with the people who will watch it, in the players and platforms the video really plays in.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service