Hi there, sorry if this is a simple question. I’m trying to do a loop / restart function with this project I’m working on now. It has a transparent alpha video file. I can’t seem to figure out how to write the correct code, I can’t seem to find the right solution in the tutorials.
var display_shown = symbol.controllers.display.elements.shown;
var display_hidden = symbol.controllers.display.elements.hidden;
var Rick__ZapworksTutorial_test1_mp4 = symbol.nodes.Rick__ZapworksTutorial_test1_mp4;
parent.on(“show”, parent_show);
function parent_show() {
// Make sure we start from fully hidden
display_hidden.reset();
// Move to the shown state
display_shown.activate();
// Start the video
Rick__ZapworksTutorial_test1_mp4.start();
// Finish the video
Rick__ZapworksTutorial_test1_mp4.on("finish", videoFinished);
function videoFinished() {
//code to run when the myVideo video is finished
}
// Start the video
Rick__ZapworksTutorial_test1_mp4.start();
}
// Finish the video
Rick__ZapworksTutorial_test1_mp4.on("finish", videoFinished);
function videoFinished() {
//
}