Streaming (video) does not pause when refreshing the page

Asked

Viewed 103 times

0

I need to make a player (streaming) when browsing between pages, that it does not pause, as if it were something external, only that has on all pages, an example, would be the facebook chat, that we can change page, and it always stays the same.

I made a test adding a youtube iframe on facebook chat and gave play on it, and browsing among other pages of facebook itself, the video does not even pause, as if it were an external page, which has no to do with the main, can tell me if this is a feature of the browser itself, or some way to do this?

1 answer

2

You could build your application as "single page", the content would be reloaded and your video would be a static area. I took a quick look at Facebook and apparently it’s built like this. If you open the browser debug you will notice that the page is not fully reloaded when you click on a link.

Take a look at this link to get some ideas.

http://www.webdesign-inspiration.com/web-designs/style/single-page

  • I’m taking a look at "history.pushState", I think that’s what I need: https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history

Browser other questions tagged

You are not signed in. Login or sign up in order to post.