<div class="embed-responsive embed-responsive-16by9">
<video autoplay="autoplay" id="myvideo"><source src="path_to_video.mp4" type="video/mp4" /> Browser does not support this format.</video>
</div>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Hide the "Next" button
$('#ls-button-submit').hide();
var vid = document.getElementById("myvideo");
// Set a volume if necessary
vid.volume = 0.3;
// When video is watched show the NEXT-button and proceed to the next question
vid.onended = function() {
// Show the "Next" button
$('#ls-button-submit').show().trigger('click');
}
});
</script>
If you don't want to proceed after the video change the last line to $('#ls-button-submit').show();
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless