05 Sep 2022, 12:02
X3 is a SPA (single-page application). How do you think the audio player continues to play uninterrupted when you navigate between pages? Audio player is a global element, and it does not RELOAD or RESTART on a per-page basis ... That would be clumsy, and of course a useless feature, because the audio would not be seamless.
Of course javascript on that page would apply for that page, but how would you expect the audio player to magically restart and re-appear when you navigate away to another page again if you have STOPPED and/or REMOVED it via Javascript. I'm struggling to see how this is so difficult to understand. Surely you can see that the audio player does not get removed and restarted on each page? ... And that if you remove it, how/why would X3 automatically think "hey, someone removed and stopped the audio player via custom javascript ... hold on, let me create it again, and restart the audio ..."
As mentioned, you can possibly STOP the audio and perhaps HIDE the audio player on that page. The audio player will re-appear when you navigate to other pages, but it won't automatically start playing again.