Forum Discussion
SibaPrasadPadhi
7 years agoCommunity Member
Adding closed caption to Rise video
Closed caption feature for rise video is one of the important functions. Do we have a timeline to include this features in Rise. Using storyline block may not be a option here as we can reduce produ...
MelissaMillo674
7 years agoCommunity Member
For anyone looking to add Closed Captions after publishing you can do it with this code. You will need to inspect the video element in your console to grab the video's ID or you can alter the code to do it another way.
Add the code to your published file at the top of the index.html page. After the following tags:
<script type="text/javascript" src="tc-config.js"></script>
<script type="text/javascript" src="lib/tincan.js"></script>
<script type="text/javascript" src="lib/lms.js"></script>
<script>
setTimeout(function() {
var videoScript = '<track id="enTrack" src="PUT YOUR CAPTION SOURCE FILE URL HERE" label="English" kind="subtitles" srclang="en" default="">'; //replace the src with your caption location
document.getElementById("PUT THE VIDEO'S ID HERE").innerHTML = videoScript; //replace the element ID with whatever your video's element ID is
}, 1000);
</script>- IliaLarionov6 years agoCommunity Member
Thank you for this suggestion. Trying to get this to work. What file format are you using for the captions thats working? i see the track for captions is showing in the console, but not showing any captions over the video. Thanks for your help
Related Content
- 4 months ago
- 2 years ago
- 9 months ago