trnghosh Posted November 13, 2012 Share Posted November 13, 2012 I have one WEBM Video File named "index_vid.WEBM" and want to redirect the same to some other page after it ends playing. I posted this one earlier but seems it was not successful posting. Link to comment Share on other sites More sharing options...
ReGA Posted November 14, 2012 Share Posted November 14, 2012 You will have to add an event to your video tag: onended. Then, you need a function that can be called from the video element. Example: <script> function redirect() { document.location="index_2.html"; }</script> <video src="index_vid.WEBM" onended="redirect()">Your browser cannot display the video element.</video> When the video has ended, the function redirect() will be called.In this function, we change the client's location. I hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now