Chapter 9: Media Accessibility and Internationalization - Examples

  1. Listing 9-1: Providing a plain transcript for a video element
  2. Listing 9-2: Providing an interactive transcript for a video element
  3. Listing 9-3: Example WebSRT file with a text description
  4. Listing 9-4: Example WebSRT file for extended text descriptions
  5. Listing 9-5: Example WebSRT file containing captions
  6. Listing 9-6: Example WebSRT file containing enhanced captions
  7. Listing 9-7: Example WebSRT file containing Russian subtitles
  8. Listing 9-8: Example WebSRT file containing Japanese subtitles and rendering instructions
  9. Listing 9-9: Example WebSRT file containing chapter markup
  10. Listing 9-10: Example WebSRT file containing Karaoke-style subtitles for a song
  11. Listing 9-11: Example WebSRT file containing grammatically marked-up subtitles
  12. Listing 9-12: Example of <track> markup with text description WebSRT file
  13. Listing 9-13: Example of <track> markup with multiple external WebSRT tracks
  14. Listing 9-14: Example of the Kate file format as used for Ogg time-synchronized text encapsulation
  15. Listing 9-15: Example of QTTXT file format as used for QuickTime text tracks
  16. Listing 9-16: Example of TeXML file format as used for 3GPP text tracks
  17. Listing 9-17: Example of TTXT file format as used for 3GPP text tracks
  18. Listing 9-18: Example JavaScript snippet to create a new TimedTrack and some cues in script
  19. Listing 9-19: Example WebSRT file created for Chapter markers
  20. Listing 9-20: Example JavaScript for dealing with time offsets on page hash