posted message: Firing a Video Event off of a Video?!
Hi All - Does anyone know how to trigger a video (and multiple videos) to run off points in the timeline. The demo http://visionsofstudents.org/ tries it but not exactly. How can you auto play a new video off of a timeline without stopping the timeline? They play around with a 'timecode.js' & this:
//Register Video Events
Popcorn.forEach(timeCodes, function(value, index){
if (value.fade){
p.code({ start: value.start, end: 3600, onStart: function(){ fadeInThumb(value.id) }, onEnd: function(){ fadeOutThumb(value.id) } });
}
else{
p.code({ start: value.start, end: 3600, onStart: function(){ showThumb(value.id) }, onEnd: function(){ hideThumb(value.id) } });
}
})