Is there a way to display text at 5 seconds into a video playing on the website, and then hide it after 10 seconds?
$(document).ready(function() {
$('video').on('timeupdate', function() {
var timeElapsed = Math.round($(this).get(0).currentTime);
if (timeElapsed == 5) {
$('txt1').show();
}
if (timeElapsed == 10) {
$('txt1').hide();
}
});
});