You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
km0 84f9296e3b | 2 years ago | |
---|---|---|
.gitignore | 2 years ago | |
functions.js | 2 years ago | |
index.html | 2 years ago | |
index.js | 2 years ago | |
jeetee.mp3 | 2 years ago | |
jeetee.srt | 2 years ago | |
readme.md | 2 years ago | |
style.css | 2 years ago |
readme.md
Sub player
Use subtitles file (.srt) as timeline, attaching custom functions to the captions to build time-based web pages.
Test for La Jeetee VR.
Process
- Load audio player
- Load subtitles .srt file
- Parse .srt files into array of subtitles
- Add timeupdate callback on audio player to update current subtitle
- Create an object to map the id of the subtitle to callback functions
Files
index.html
is the entry pointindex.js
takes care of loading and parsing the SRT file, calling the functions fromfunctions.js
custom list of functions to map onto the subtitles defined injeetee.srt
, that is a standard .srt file for subtitles