This might be built in but I can't find a reference to it. I'm trying to add subtitles to a video for accessibility. I did try to update the template for the media component and the component configuration. No dice. Caption control doesn't show. The captions vtt file is in the video folder. It looks like the component is using mediajs.
{
"_id":"c-102",
"_parentId":"b-52",
"_type":"component",
"_component":"media",
"_classes":"",
"_layout":"full",
"title":"Media component",
"displayTitle":"Media component",
"body": "As mentioned above in the hot graphic - a media component is both a single and spanned component. Below is a media component spanned.",
"instruction":"",
"_setCompletionOn":"play",
"_media": {
"mp4": "course/en/video/big_buck_bunny.mp4",
"ogv": "course/en/video/big_buck_bunny.ogv",
"poster": "course/en/video/big_buck_bunny-large.jpg",
"subtitles":"course/en/video/captions.vtt"
},
"_pageLevelProgress": {
"_isEnabled": true
}
},
*****************
And in media.hbs:
{{#if _media.subtitles}}
<track srclang="en" kind="subtitles" type="text/vtt" src="{{_media.subtitles}}" />
{{/if}}