I suggest you lose the separate managers, and instead use the sequences you have for each clip inside the sequence in the main mgr file. In this case, you don't inherit files for each clip in the main sequence, but simply have a message for each video. From my experience, that should work.
API.addSequence([
{inherit: 'txtconsent'},
{inherit: 'warning'},
{inherit: 'tryit'},
{inherit:'intro'},
{inherit:'taskintro'},
{inherit:'nstabAnat3_1'},
{
type: 'message',
data: {
// The video url (as mp4!)
},
// We create the video template itself
template: [
'<div class="text-center">',
' <video controls="controls" autoplay="autoplay" width="854" height="480" style="margin:auto">',
' <source src="<%= tasksData.videoUrl %>" type="video/mp4"/>',
' <param name="allowFullScreen" value="true" />',
' <param name="wmode" value="transparent" />',
' <param name="flashVars" value="autoplay=true&controls=true&src=<%= tasksData.videoUrl %>" />',
' </object>',
' </video>',
'</div>',
'<div class="text-center proceed" style="margin: 30px auto 10px;">',
' <button pi-message-done type="button" class="btn btn-primary">Click Here to Proceed</button>',
'</div>'
].join('\n'),
// This is where the magic happens. as soon as the page is loaded
// We hide The proceed button, and show it only after 60 seconds when the video is supposed to end.
// (Note that in certain situations the button may be displayed before the video finishes playing. This is because the timing is absolute and not dependant on the video actually finishing)
load: function(){
var proceed = document.querySelectorAll('.proceed')[0];
proceed.style.visibility = 'hidden';
setTimeout(function(){
proceed.style.visibility = '';
}, 56 * 1000); // after 55 seconds
}
},
{inherit:'postquesgame'},
{inherit:'debriefing'},
{inherit: 'redirect'}
]);
Hope this helps,
Sapir