HOW TO get subtitles from a HTML5 video player

If you prefer to learn about the content of a video by reading its transcript rather than watch a video, the way to get at the caption file (if it is available) when the video is available through a HTML5 video player is to look at the HTML source (right click on web page and choose View Page Source from the context menu) and grab the file name.

You may look at HTML code like this corresponding to the video player when you look at the source -

<video id="video1" controls autoplay>
<source src="
http://ie.microsoft.com/testdrive/Videos/BehindIE9ModernWebStandards/Video.mp4"  >
<track id='track1' label='English captions' src="entrack.vtt" kind='subtitles' srclang='en' default >  
</video>

The file specified for the track element is the subtitles file.

Internet Explorer supports two formats for closed captioning, WebVTT and TTML. In IE11, support for Simple Delivery Profile (SDP) caption styling was added. SDP gives some pretty cool abilities to place the text within the video frame, change text color, and background, and control stroke color and width.

Comments

Popular posts from this blog

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)