This is a simple example for srt captions
Simply use a srt-file and append: <a href="file.srt" class="track" data-enabled="true">My srt file</a>
... to your media element
There are more options, we will explain soon.
Try to be accessible and nice to your users :-)