+ 2

Please how can i add html video subtitles

How can I add video subtitles without cross origin, adding the track text into my source code, using a subtitle file and locally.Please any idea would be appreciated When does that CORS error stop because it still persists though video and subtitle are from dropbox https://code.sololearn.com/W8nOIHF0gjBw/?ref=app https://code.sololearn.com/WQBz4jeOOb9H/?ref=app

3rd Jun 2022, 12:02 AM
Xavier Christian
Xavier Christian - avatar
1 Antwort
+ 3
That was a nice idea, well I guess to achieve that, (this is only theory) A <video> tag for html, then create a floating, or higher z-index tag for text, or for example, <p>, and make it in front of a video using css, then here comes the JavaScript, you need timer for seconds, on when to change text inside of <p> or any tag you used. Well, to not make it harder, use an online subtitle creator for your video. Then by that, you can do it. To be honest, you can search in internet about that, maybe there's already finished code, but for you to learn, make it your self.
3rd Jun 2022, 3:23 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar