jquery - How to add caption data in videojs-caption plugin -


i using videojs-caption plugin have read documentation don't understand should give data.

// initialize video.js var player = videojs('video-id');  //load caption plugin player.caption({    data: captiondata }); 

i have srt , vtt subtitles file on server how can give file data can load subtitles in player.

i searching , working on 8 hours ago want run plugin can use more functionality forward subtitles , change styling of captions

you'll have convert srt or webvtt file json format. custom format plugin.

the creator state similar sami: https://github.com/spchuang/videojs-caption/blob/master/readme.md use starting point.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -