(no title)
hmsimha | 2 years ago
The typical "workaround" is to reencode the video file to include the subtitles directly, but that sounded like too much work, so I hacked together a static page using https://videojs.com/ to embed a player and load the video and subtitles in a browser window.
Here it is in gist form if anyone has a similar issue: https://gist.github.com/HartS/9bb2721fa73b6798efcdbf5c463e87...
This was hacked together as quickly as possible for my own needs, so definitely not intended to be an example of clean code. You need to run the python server separately to serve the SRT because video-js can't load it from a file URL IIRC
Foxboron|2 years ago
jimlikeslimes|2 years ago
chedoku|2 years ago
hmsimha|2 years ago
It works locally reading the video file from the file:// url (though strangely needs http for the subtitle track)