Click here to Skip to main content
15,905,616 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to use a video player in my web application & when video will complete then want to redirect to new url automatically

What I have tried:

Nothing. i have no idea that how to use redirection in video player
Posted
Updated 12-Feb-18 18:38pm
Comments
David_Wimbley 13-Feb-18 0:15am    
And what would you like us to do? You indicate you haven't tried anything so that leads me to believe you'd like someone here to do the work for you.

If you don't want anyone to do the work for you then you really ought to use google and try and figure it out for yourself. There are plenty of jquery video player plugins that I am confident have some sort of callback you can utilize once the video is done to handle your redirection...all you have to do is put in a little bit of effort on your part and do the research.

1 solution

Use Html5 video tag for playing video .

Add javascript code and use the onended event for redirecting.

Also, can use Js libraries like [Videojs] which has a callback when video ends.

Tryit Editor v3.5[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900