cgiffard / Captionator

HTML5 polyfill for closed captioning with the <track> element, and implements the WHATWG Timed Text Track specification.
captionatorjs.com
300 stars 66 forks source link

Seek to text #37

Open selfsimilar opened 10 years ago

selfsimilar commented 10 years ago

This maybe out of scope for the project, but it would be amazing to support links in the transcription text to the corresponding points in the video. See http://www.subply.com/en/Products/InterActiveTranscript.htm as an example. My use case is incorporating transcription text into site-wide search and resolving the search to the appropriate point in the video.

Just to clarify, it's not clear to me if the API supports this use case easily.

cgiffard commented 10 years ago

Generally speaking, the API does not directly facilitate this kind of functionality. However, I have built similar products using VTT captions to generate seek-to-text transcripts before. (See: http://dispatch.media.gbuild.net/video/179)

I can't provide you with any specific server-side source code from that example, since I no longer work for the organisation in question. But it is possible! I just build the transcript itself from the VTT file, and when I do, add some microdata specifying the start and end points for a given cue.