I have a webpage that runs a fullscreen video on the landing page. I have used the timeout function of javascript to redirect the page to another link after the video ends. But the timeout shows a lot of inconsistency in different browsers. Sometimes the page redirects before the video ends and sometimes there is a slight delay.
Is there any way to avoid the use of timeout function altogether and simply redirect the page when the video has come to an end?