Launch external url after video finished


#1

Hi. I have created a video in zappar. I want it to launch a external URL, anyone know how to do that?

Thanks.


#2

If your using the Video Player you can use the symbol emits " video:finish"
to call your URL.

Steve


#3

hi Steve. Thanks for the reply. I have done this tutorial
https://docs.zap.works/studio/video/preparing-alpha-video/
and I want to launch a url after the video is done. any suggestions?

thank you


#4

If you copied the tutorial you should only need to add it code to your show script.
You may need to replace any of the “” in the code (IE “https://zappar.com/”) after you paste it.
When you copy from the form and paste to zapworks it doesn’t alway use the right ones.

symbol.nodes.Simon_Flying_masked_mp40.on(“finish”, () => {
// Runs when finish occurs on the Simon_Flying_masked.mp40 node

// Simon_Flying_masked_mp40.restart(); // Loops video
Z.device.launchUrl("https://zappar.com/"); // Change to website you would like.

});

Steve


#5

I will try this. Thnak you so much.