Skip to content
easeweb
Search topics

Captions stuck in one style, or lost when video is converted

A shop's video player draws captions small and white with no settings to change them, and its streaming encoder drops the captions and audio description.

EN 301 549
Clause 7.1.3Clause 7.1.4Clause 7.1.5Clause 7.2.3
Broken font: 13px/1.3 "Brand Sans", sans-serif;
The accessibility problem illustrated: Low vision:Can I make the captions bigger?
01

The problem

People who need bigger or higher-contrast captions get no settings to change them, and the streamed version of the video has no captions or audio description at all

02

Try it

Play the brewing video. Can you read the captions, or make them bigger?

  • Broken 1: watch the captions. The shop’s player draws them in one thin white style, with no settings.

  • Broken 2: look for CC and AD in the player. The streamed version lost its captions and described soundtrack.

  • Apply a fix. Both come back: try CC and AD. The captions are drawn by the browser in your system’s caption style, or with the player’s own settings.

Broken Can you fix this?

How to brew our house blend

0:00 / 0:00

The stream carries: picture, sound, described sound, captions

Captions drawn by: the player

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Keep captions when converting, and let viewers style them

Before

Captions drawn in one style

// The player hides the browser's captions and draws each cue itself.const track = video.textTracks[0];track.mode = 'hidden';track.addEventListener('cuechange', () => {  captionBox.textContent = track.activeCues[0]?.text ?? '';});
What is wrong4 points

The captions are text, so they could be restyled, but.

  • Viewers who need bigger or higher-contrast captions can't change them in the player, which offers no settings.
  • Their system caption settings don't help either: they don't reach text in the player's own box.
  • The captions are hard to read on a light picture: thin white letters with no background.
  • Zoom and a contrast theme don't fix that. Browser zoom makes them bigger, along with the rest of the page, and a contrast theme changes their text colour, but nothing gives them a background.
After

Tracks kept through conversion, captions drawn by the browser

// The browser draws the captions, so the viewer's system caption style applies.const track = video.textTracks[0];track.mode = 'showing';
How it is fixed4 steps
  1. In the encoding job, carry the captions as a subtitles rendition.
  2. Carry the described soundtrack as a second audio rendition, marked as describing the video.
  3. Link both to each size of the picture, so every player of the stream can offer both, in sync.
  4. Drop the player's own caption box and set the track to showing. The browser then draws the captions, in the viewer's system caption style in Safari and in Chromium-based browsers such as Chrome and Edge.

This fixes both Befores and meets EN 301 549 7.1.3 and 7.2.3, but leaves the captions' look to the browser. Firefox doesn't read the system caption settings, on macOS at least, so its users there get the page's style, and viewers who don't know the setting exists won't find it from the player.

04

Verify the fix

4 checks, no mouse.

Test with: Caption settings, Screen off, Keyboard

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat whenever the encoder, the player or the video platform changes.

Limits

This is a starting pattern, not a guarantee for every application. Settings only help when the captions are right and complete, and some viewers need settings beyond these three, such as an outline around the letters or a different font. Test the complete journey with the people who will watch, 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