From the course: Learning Web Audio and Video

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Media accessibility

Media accessibility

From the course: Learning Web Audio and Video

Start my 1-month free trial

Media accessibility

- [Narrator] Captions, Subtitles, Chapters and Descriptions can be added to either Audio or Video Playback, which will describe the content in different ways for accessibility and descriptive purposes. Once again look inside the Exercise Files in your media folder and you'll find captions.vtt. This is a captions file that I've created, which just sort of describes some things. It gives a good example of how to use vtt files. Let's go ahead and drag this into our Media Folder once again, and it opens it up for us. Now, in a vtt file, you basically specify time code for when you want a specific descriptor to begin and then when you want it to end. I just say, "These are English language captions," and then a little while later, I pop up, "You are watching footage of a beach in Rhode Island," and then finally, "Pretty cool, huh?" That's really all there is to it. Let's go ahead and close that vtt file. Then, we'll tie it to the video element by using a track element within it. This works…

Contents