Youtube subtitles example within JWPlayer
<div class="flex w-full h-auto my-auto">
<div id="subtitles" class=""></div>
</div>
<script type="text/javascript">
var player = jwplayer("subtitles").setup({
"aspectratio": "16:9",
"playbackRateControls": true,
"sources": [
{
"file": "http://www.youtube.com/watch?v=QRS8MkLhQmM",
"type": "youtube"
}
],
"width": "100%",
"youtube": {
"subtitles": true
}
});
</script>