I guess this is a funny item request. To me: I’m (currently, but planned) not a wordpress plugins developer, but I can tell you some reasons why this doesn’t work and how it could work.
Why doesn’t it work with wordpress?
How it could work and the algorithm behind a realtime-webplayer
For example you’d click on a tab like “profile”. It would redirect you maybe to profile.php?id=3929 or something like this - maybe your own profile? So, if we’d import a player and play music with it, the player would get reloaded and auto restarted.
But we could just save the step where we stopped the player when switching the page?
True, but this would make a small lag depending on the loading time of your page and the internet connection of the client. So, it doesn’t matter, it would for 100% lag for even 1-2 seconds. So this idea isn’t really good.
Didn’t we import the frame and the player in our html document? Yeah, we did!
So if we switch INSIDE OF THE FRAME another page, it won’t attack our main page. Only the frame will get reloaded/navigated to another page!
So we can easily play music trough our music player on the main-page and switch pages on our frame-page (wordpress).
I hope I could help you with my broken english at least a little bit but… this would be (from my opinion) the only way to create a web-based music player.
So far I will have a look to create a wordpress plugin because this part does really interest me and looks like a small fight for me. Challenge accepted!
There are for sure other ways to do it. I had a look at soundcloud and figured out they don’t use iframe’s. So i thought how this could be possible. The reason for this is (maybe) simple: They’re using AJAX technologies to load their content of pages which you are navigation trough. Per example you’re clicking on “explore”. Asynchronous it will load the HTML for the page “explore” and set it to the current HTML body. So, the music player won’t get attacked by it trough it’s asynchronous handling.
If you’d do it without an iframe or asynchronous technology, it would be synchronous and refreshed in front of your eyes - ugly for sure!