Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Update vtt file

I wrote a java script that uses ajax to modify vtt file following user actions.
Now i try to update the player with the new vtt.
It works but the player CSS is broken.
How can i do to keep css unchanged ?

This is my code after the modification :

/*i force the navigator to reload the vtt file*/
var oReq = new XMLHttpRequest();"get", data.urlvtt, true);
/*update the player*/
autostart: true,
file: data.urlvideo,
image: data.poster,
width: playerwidth,
height: playerheight,
primary: 'html5',
mobilecontrols: true,
tracks: [{
file: data.urlvtt,
kind: 'chapters'
/*seeking to the last position*/;

1 Community Answers


JW Player Support Agent  
0 rated :

Hi there,

While it should be possible, we don’t officially provide support nor assistance for dynamically generating captions because its not built-in functionality to the player. With that being said, if you are able to provide me with a URL to a reproduction page showing the behavior with the CSS of the captions and also an explanation of what the behavior you are seeing is, I will be more than happy to at least take a look for you.

Thank you.

This question has received the maximum number of answers.