On my website's landing page, I have a fullscreen video that plays. I attempted to use javascript's timeout function to automatically redirect users to another link once the video finishes playing. However, I encountered issues with inconsistency across different browsers. Sometimes the redirection would occur before the video ended, and other times there was a slight delay.
Is there a more reliable method to redirect the page once the video has finished playing without relying on the timeout function?