Description
I want to use SRT subtitles in my videos alongside WebVTT because SRT has a huge selection of subs in sites like subscene.com But it seems support for it was dropped since v4.12+ Additionally suggested BubblesJS library /repository seems dead. the provided link no longer work.
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Add a <track>
element with srt source file inside <video>
Results
Expected
Have option for displaying captions
Actual
Nothing there
Error output
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
7.3.0
browsers
All?
OSes
Android, Windows, Linux
plugins
NO PLUGIN
The easiest option is probably just to convert srt to webvtt in advance.
You could convert to webvtt on the fly and load as a remote text track, along these lines.
The regex is a bit simplistic and there will be edge cases it doesn’t work with, there’s more robust code to do the conversion part at https://github.com/silviapfeiffer/silviapfeiffer.github.io/blob/master/index.html