Making video play continuously even when changing html page with javascript and no frames

I would like the video game to continue even when the html page changes. The new google video page works just like that. My page uses javascript.

0


a source to share


3 answers


You can only keep playing if you change parts of the DOM, not when you change the location of the page.



+4


a source


How about reloading parts of the page using AJAX.



You will then avoid rebooting which will stop the video playing.

+3


a source


I think you want to validate AJAX (Asynchronous JavaScript and XML). This allows you to manipulate parts of the page (in general, the entire HTML DOM) using callbacks to the server via JavaScript. This is exactly what YouTube / Google Videos use for voting / feedback while still watching the video, as any page reload causes the browser to stop playing the video and restart.

There are different options for the AJAX libraries depending on what web framework you are using. For example, Microsoft has created their own [ASP.NET AJAX]] ( http://www.asp.net/ajax/ ), which is now very mature.

+2


a source







All Articles