how can i add player subtitle in web plugin (programmatically)

We want to build a sophisticated movie website. We will use ace stream web plugin, but there is a little problem. There is no documentation about adding subtitle to the movies with JavaScript API, on the internet. Could you help us about this problem?

We would be grateful if you could attend to this matter as soon as possible.