How do I make my website go back to the homepage after inactivity

I saw a question similar to mine but I am not understanding how it works. I am using wix to make a kiosk that museum patron’s can interact with and watch some short videos. I want to make it so after 5 minutes of inactivity the website goes back to the home screen (That gives them enough time to watch the video and couple minutes for the website to go back to home). Does anyone have sample code for this and what are the steps for implementing it it?

I am assuming this is relevant to wix editor.

I looked at this forum post but did not understand the steps: Return to homepage after inactivity - #2 by nickmontanari

I also found where people provided some code but they were using a different website editor: https://forum.squarespace.com/topic/319936-inactive-idle-user-site-redirect-to-homepage/

I got to where you input code with Velo. My assumption is that if I copied code, it should be like plug and play and I just need to change whatever location variable to the URL of my homepage. Does anyone have code that I could use and am I inputting the code correctly?

If you are using the video player you can listend for the video ended event On Ended | Velo

or if you are using some other video embed and know how long the videos are you could use setTimeout and wix-window to navigate after a specific amount of time.

There may be other ways as well folks here will offer, but hopefully this can get you started investigating.

Thank you! I will definitely look into this to start!