Hacker News new | ask | show | jobs
by s20n 34 days ago
Thanks, that would be great! I am trying to think how this could work. Generally, subtitles are embedded as a separate track in the video container or as a sidecar .srt file [1].

Perhaps they can be converted and shown using the WebVTT API[2] or <track> tags [3]?

Edit: Maybe that wouldn't work, here's a relevant stackoverflow post [4]

[1] https://en.wikipedia.org/wiki/SubRip

[2] https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API

[3] https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

[4] https://stackoverflow.com/questions/61446205/webrtc-and-text...