How to reload vtt subtitles tracks? #8773
-
I generate the videojs html5 video player with default vtt tracks, the editor edits them manually and clicks save, now you have new vtt file, that has the exact file name and path of the old file, it's just that videojs keeps reading the old file. The vtt file is hosted on the server.
<track src=https://github.com/videojs/video.js/discussions/"/captions_file.vtt" label="English" kind="captions" srclang="en" default>
</video>">
if I do |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can use |
Beta Was this translation helpful? Give feedback.
-
@mister-ben I tried that as well, didn't work, the player kept playing fine, the tracks were removed but I don't see the new tracks after adding them
Should I reload the player somehow or do something else? I get no javascript or python errors, I know the function is working fine, I don't know why the subtitles aren't showing |
Beta Was this translation helpful? Give feedback.
-
I had to add
|
Beta Was this translation helpful? Give feedback.
I had to add
mode: "showing"
, thank you so much for your help.