HTML and CSS Reference
In-Depth Information
In this section, you're going to build a simple UI for switching from captions to subtitles
to descriptions. Figure I.4 shows video with the caption selected; figure I.5 shows the sub-
titles after clicking the middle button. The third button, for descriptions, you'll deal with in
the following section.
Figure I.4. Video with captions selected
Figure I.5. Video with subtitles selected
For this to work you'll need additional WebVTT files. Listings I.6 through I.8 show the
files you need for the captions, subtitles, and descriptions. Note that the long filenames are
provided in code comments.
Listing I.6. Captions
//
VID_20120122_133036-
captions.vtt
 
 
 
Search WWH ::




Custom Search