Skip to content
easeweb
Search topics

Videos a keyboard can't play, or with no captions button

A product video's play button takes only clicks and says nothing, or the site's own player has no button for the video's captions and described version.

WCAG 2.2
SC 2.1.1ASC 4.1.2A
EN 301 549
Clause 7.1.1Clause 7.2.1
Required by
Section 508 · EN 301 549 (EU)
Broken <div class="big-play"></div>
The accessibility problem illustrated: Motor:How do I play the video?
01

The problem

Keyboard and screen reader users can't start the video, so they never reach its captions, and in a player with no captions button, nobody can turn on the captions or the described version

02

Try it

Using only the keyboard, play the brewing video and turn on its captions

  • Broken 1: the play button on the picture takes only clicks: Tab goes from the heading straight to the link under the video, and the panel under the player shows that a screen reader finds nothing in it. Click it with the mouse to see the rest of the player.

  • Broken 2: the play button works from the keyboard, but nothing in the bar turns on the captions or the described version.

  • Apply a fix. Try again with the keyboard alone: can you play the video, and turn on the captions and the described version?

Broken Can you fix this?

How to brew our house blend

Shop the house blend

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Let the keyboard play the video and reach its captions

Before

A play button over the poster that takes only clicks

<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="big-play"></div>  <div class="player-bar" hidden>    <input type="range" class="seek" aria-label="Position"      min="0" step="1" value="0">    <button type="button" class="play" aria-label="Play"></button>    <span class="time">0:00</span>    <button type="button" class="mute" aria-label="Mute"      aria-pressed="false"></button>    <input type="range" class="volume" 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>  </div></div>
What is wrong3 points
  • A keyboard user can't start the video: Tab goes straight past the play button. It is a div that responds only to click, so it is never a Tab stop.
  • A screen reader finds nothing to press. The div has no role and no name, and its triangle is drawn by CSS, so there is no text to read.
  • A keyboard user never reaches the captions button either, however well it is built. Everything else in the player waits behind the play button: the bar is hidden until that first click.
After

A play button and a bar, with captions and audio description

<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>  <button type="button" class="big-play" aria-label="Play video"></button>  <div class="player-bar">    <input type="range" class="seek" aria-label="Position"      min="0" step="1" value="0">    <button type="button" class="play" aria-label="Play"></button>    <span class="time">0:00</span>    <button type="button" class="mute" aria-label="Mute"      aria-pressed="false"></button>    <input type="range" class="volume" 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>  </div></div>
How it is fixed6 steps
  1. Make the play button over the poster a native button named "Play video". Tab reaches it, Enter and Space press it, and a screen reader calls it "Play video, button", with no key handling to write.
  2. Show the bar from the start, not only after the first press, so captions and audio description take one press, as play does, and can be on before the video starts.
  3. Pressing the play button hides it, so move focus to the bar's play button, which says Pause once the video is playing. Without that line, the browser would move focus back to the page itself, away from the player.
  4. Add a CC button to the bar that shows the captions track the video already carries.
  5. Add an AD button that swaps in the described version at the same place, as in videos without audio description of what they show.
  6. Have both say whether they are on with aria-pressed, and start their names with the letters they show.

This fixes both Befores and passes 2.1.1 and 4.1.2, with captions beside volume in every browser, as Section 508 503.4.1 and EN 301 549 7.3 ask.

The shop's own look is why this player is custom, and a bar that fades, a clear poster, a click anywhere to play or keyboard shortcuts often come with it. Each can be added, as long as it leaves those steps intact.

  • The shop's look: style the native buttons and range inputs rather than rebuilding them as divs, and keep a focus ring on each that stands out against the dark bar and against both the light and dark parts of the picture.
  • A bar that fades out during playback: bring it back when focus moves into the player, and keep it while focus is there.
  • A clear poster: if only the play button shows before the video starts, put a captions button beside it, so captions are not a level below play.
  • A click anywhere on the poster: fine as a convenience for the mouse, as long as the round button stays for the keyboard.
  • Keyboard shortcuts: add them alongside the buttons, never instead, and make single-letter ones work only while the player has focus.

Why this fix: Use native HTML first

04

Design ideas

A video can start from a poster that looks good and still works from the keyboard

Five ways to draw how the brewing video starts. Tab to each and try to turn on the captions before you start it: three start from the keyboard and offer the captions, two don’t.

In the design file

  • Draw the play button as a button, with its focus ring, and write beside it the name a screen reader will say, such as Play video.
  • After the first press: draw the player with its bar, and mark the Pause button as where focus lands.
  • Put the captions button, and the audio description button when there is a described version, where they show before the video starts, in a bar that is always there or beside Play on the poster.
  • Draw the focus ring over the lightest and the darkest part of the poster, so it shows on both.

Passes

  • A play pill with the running time A pill in the poster’s corner says Watch and 0:24, white on #1b1b1b at 17.22:1, so it reads as a button and tells people how long the video is before they start. The bar under the picture is there from the start, so CC and AD are one press too. Tab stops on the pill, Enter starts the video, and the yellow ring shows past a dark gap on any part of the picture.
  • The whole poster as one button The poster, its title on a solid #1b1b1b band (17.22:1) and a small play mark make one button, named by the title, so a screen reader says what will play, and the bar under it is there from the start, so the captions are one press before the video plays. The ring goes round the whole card, which suits a grid of videos where each card plays its own.
  • CC and AD beside Play, on the poster Play, CC and AD sit together on the poster, so a clean poster with no bar still lets people turn on captions or audio description before they start, in one press each. The chips are white on #1b1b1b at 17.22:1, filled yellow when on, and the bar that appears once the video plays keeps the same choice.

Fails

  • A play bubble that follows the pointerWCAG 2.1.1 A round Play bubble trails the mouse across the poster, and a click anywhere starts the video. There is no button under it, so Tab goes straight past the video, and on a touch screen there is no pointer for the bubble to follow.

    Rule of thumb: Use native HTML first

  • A muted loop with only a sound chipEN 301 549 7.1.1 The video loops with the sound off and one round chip to turn it on. The narration has captions, but nothing shows them, so turning the sound on is the only way to the recipe. Drawn still here; on a site it loops.
05

Verify the fix

4 checks, no mouse.

Test with: Keyboard, Screen reader

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

How screen readers handle aria-pressed

Limits

This is a starting pattern, not a guarantee for every application. It covers how the player's controls are reached, what they say, and whether the captions and the described version can be turned on at all. A player that can turn them on, but only from a settings menu while play and volume sit in the bar, is a different failure, covered in video players with no captions button in the control bar. What is in them is covered elsewhere: videos without captions, or with unchecked automatic ones for the captions, and videos without audio description of what they show for the description. A video that starts with its sound on needs a way to stop it first, in autoplaying sound with no way to stop it, and one that moves by itself beside other content needs a pause, in tickers, carousels and animations that can't be paused. Test the complete journey in the browsers and with the assistive technology your viewers use.

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