I have made one html page. And in that video tag is added. Now after certain time videos pauses and one form comes up, And the data of that form is submitted using servlet. Now i want go back to same state of video where it was paused. What should i use in servlet to do that. Because
response.sendRedirect(request.getHeader("referer"));
goes back to starting of the page.
EDITED
i am doing this document.cookie="currentTime=video.currentTime";
on submitting of form, and this
vid.addEventListener("timeupdate", function()
{
if(getCookie("currentTime")!==0){
video.currentTime=getCookie("currentTime");
}
in event listener, whats wrong?