Music on website

Hi,

I have a website in which users login and post music from soundcloud and youtube. the website fetches the song data using the services apis and then stores it in a mysql database. the website then shows the users input across the entire website.  however, if you start a song on one page and then click on a link to go to another page the music will stop playing. is there a way in which i can just play the music regardless of the user going in and out of different pages? (similar to soundcloud).

i am using php to do most of the database work but i assume this would need some js
LVL 6
J NUnicorn wranglerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zc2Commented:
Some music services like last.fm just open a popup window and locate their player in it.
Or you could organize your site as a frameset, in one frame the player will reside, the other frame will show the page while the user navigates through your site.
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
your only (good) option is to use a pop up window to load the player (as previously suggested). if you care about seo on your site, i highly advise against using frames....
0
J NUnicorn wranglerAuthor Commented:
i want to stay clear from both of those situations. i hate when browsers popup music browsers and the fact that html5 doesnt support them leads me to believe that they are not worth while

any other suggestions?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
web pages use the stateless protocol. once you navigate to a new page, you need to reload all of the data. the only non-complex way around this is to use frames or the pop-up method.
0
J NUnicorn wranglerAuthor Commented:
Hi,

As i mentioned i do not want popups and frames do present a potential however there are a lot of negatives to them therefore i would like to know alternatives to either approaches
0
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
and as I mentioned, those are your only real good options. unless you want to convert your site to flash....

sometimes the answer is "you can't really do that...."
0
J NUnicorn wranglerAuthor Commented:
Hi,

thanks!

i was curious if javascript could pass data seamlessly between pages so it would not appear as the music every stopped. Also,  i read somewhere that this could be done using html5 store docs.

if i was to consider frames i probably have to change my entire css and that seems like a nightmare.
0
J NUnicorn wranglerAuthor Commented:
I think the BEST solution is to create a javascript web app and use the history api to fake changes not a separate window
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
Ultimately it's up to you but you're going to run into a lot more headaches than you need if you try to build a site based off of a hack method aka "fake  changes".

Anyway good luck with whatever approach you take
0
J NUnicorn wranglerAuthor Commented:
i provided an answer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.