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.
|
|
|
# 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
|
|
|
|
|
|
|
|
1. Load audio player
|
|
|
|
2. Load subtitles .srt file
|
|
|
|
3. Parse .srt files into array of subtitles
|
|
|
|
4. Add timeupdate callback on audio player to update current subtitle
|
|
|
|
5. Create an object to map the id of the subtitle to callback functions
|
|
|
|
|
|
|
|
## Files
|
|
|
|
|
|
|
|
- `index.html` is the entry point
|
|
|
|
- `index.js` takes care of loading and parsing the SRT file, calling the functions from
|
|
|
|
- `functions.js` custom list of functions to map onto the subtitles defined in
|
|
|
|
- `jeetee.srt`, that is a standard .srt file for subtitles
|
|
|
|
|
|
|
|
|