Using the track API to extract the content of webVTT files in <track> elements

Click on the buttons under the video to extract the english or german subtitles, or to display the chapter markers (english).

Look at the HTML and JS code.

Edit in JS Bin