Continuous mp3 game on website?

The client requests one track, which will be heard through the website. Actually, I advise against this, but they insist. So, what is the easiest way to have a built-in Flash player in the site, and when the user goes to another page, there is no gap / interruption?

I think an iframe is required. I use a flash player that has an answering machine, but that only decides when you left off on a song before going to another page. I tried to find SO for an answer.

+3
source share
4 answers

If you want it to be completely continuous, you need to embed the whole site in an iframe or load pages via Ajax.

, , -, cookie .

, .

+4

- , AJAX. Html, AJAX, iFrame, . Javascript AJAX. AJAX, JQuery, .
, , - , . , , . , , , , , , .

+1

You can try popunder. Oddly enough, you cannot do much worse than playing music on the site, so if the client is okay with her, this is an option.

+1
source

Create a hidden iframe behind the current content. Play the content there. Moving pages to a page occurs in the top frame, so the background frame remains in place. As a minus, the URL will remain unchanged.

Seriously, however, the site will suck if there is no way to turn off the shit.

0
source

Source: https://habr.com/ru/post/1737583/


All Articles