O
O
Oleg Komenda2018-02-20 19:36:51
css
Oleg Komenda, 2018-02-20 19:36:51

How to pick up the interruption of music in the site?

Hello, I'm writing a site ...
When I open another tab, the music starts playing again, how to remove this (make it so that after a reboot it doesn't start at 00:00, is it really?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-02-20
@rafamont

Through the onunload() event - put the current timestamp in the cookie, but there will be a pause anyway.
It’s better to do this through an iframe (when we turn on the music, we put the site in an iframe, and the external container constantly plays music while we navigate through the pages) or through SPA (it’s more difficult for SEO here).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question