Splash Page - hide video after it end and autoload new page

After trying to learn from previous posts, I still need help on my welcome with executing 2 different actions:

  1. Hide video after it ends.

  2. Jump to another page on my website after video ends (desktop and mobile).

For the second one, I tried the following code, but it doesn’t seem to work.

Thank you very much!


import wixLocation from 'wix-location';

$w.onReady(function () {
	setTimeout(() => {
	}, 10000);