Solved

Music on website

Posted on 2014-07-24
10
126 Views
Last Modified: 2014-09-03
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
0
Comment
Question by:M. Jayme Nagy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 18

Assisted Solution

by:zc2
zc2 earned 125 total points
ID: 40218050
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
 
LVL 33

Assisted Solution

by:Big Monty
Big Monty earned 375 total points
ID: 40220239
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
 
LVL 6

Author Comment

by:M. Jayme Nagy
ID: 40225588
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 33

Assisted Solution

by:Big Monty
Big Monty earned 375 total points
ID: 40227207
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
 
LVL 6

Author Comment

by:M. Jayme Nagy
ID: 40227598
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
 
LVL 33

Assisted Solution

by:Big Monty
Big Monty earned 375 total points
ID: 40227802
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
 
LVL 6

Author Comment

by:M. Jayme Nagy
ID: 40227815
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
 
LVL 6

Accepted Solution

by:
M. Jayme Nagy earned 0 total points
ID: 40292783
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
 
LVL 33

Expert Comment

by:Big Monty
ID: 40292801
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
 
LVL 6

Author Closing Comment

by:M. Jayme Nagy
ID: 40300571
i provided an answer
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS display:none AND display:block on same element 3 121
use of cookies and regulations 1 105
Stupid git question 2 135
MediaWiki - Move a site 4 54
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question