Change URL and audio remain playing

Asked

Viewed 38 times

0

I am developing a site in PHP and Jquery where at the top of the site (present on all screens) the user will be able to click play and listen to a streaming of a live radio.

The problem is that when changing page the audio stops playing and the person needs to play again. I saw that some sites manage to get around this problem by changing the URL but the play of audio staying always open, it seems until the URL of the browser only changes, but not of a Reload, an example is the site of CBN: https://cbn.globoradio.globo.com/ (to test a play to listen to the radio and then click on some link).

I had thought to call the content via Ajax, but this would be bemmm laborious, because the site is very large, with news and everything else.

What choice do I have?

  • Just this one. Or put your entire site in an iframe, which sounds like a bad idea (SEO and everything).

  • I think only with iframe (as @bfavaretto said) or with SPA.

No answers

Browser other questions tagged

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