liveBook · Manning

Media alternative

As explained in Architecting Accessibility

A media alternative is an alternate representation of audio or visual content that makes its information available through another format.

Captions make video audio accessible to people who are deaf or hard of hearing. They can also support viewers using a non-native language and some neurodivergent viewers. section 3.4.2

Choose closed captions when possible: viewers can turn them on or off and customize their appearance. Use open captions when user control is not technically feasible or the playback context does not allow customization. section 3.4.2

Make captions meaningful and accurate:

  • Include spoken dialogue, speaker identification, and meaningful non-speech sounds. section 3.4.2
  • Review automatically generated captions for accuracy and meaning. section 3.4.2
<video controls src="/latest/podcast.webm">
  <track kind="captions" src="/latest/captions/podcast.vtt" srclang="en" />
</video>

Link a time-coded WebVTT caption file to a video using the HTML track element. section 3.4.2

How Architecting Accessibility covers it

How deep it goes
Explains caption types, required content, accuracy review, and linking time-coded WebVTT files to video.
Examples
Uses a podcast video and captions containing dialogue, speaker names, and laughter.
What you can do after
Apply captions by linking a time-coded WebVTT file through an HTML video track element.
How it connects
Links captions to WebVTT text tracks and HTML video elements.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.