Closed EbaraKoji closed 1 month ago
To play videos with captions on HTML, captions with .vtt format are needed.
MDN WebVTT How to add captions to html video tag
Subtitles can also be showed with json or srt files, along with customized style.
using videoRef
videoRef.current?.currentTime
.vtt caption feature has added.
To play videos with captions on HTML, captions with .vtt format are needed.
MDN WebVTT How to add captions to html video tag