moneysharma — 2012-10-30T14:15:19-04:00 — #1
i am running mp3 in background and when i switch pages of site it stops and start again on next page. what should i do(through PHP) to play it continously?
kylewolfe — 2012-10-30T14:18:02-04:00 — #2
Not really possible... If I were you, I'd look at setting up a simple AJAX body. This will allow you to load in a new body section (a new page of content) without actually leaving the current page.
Once you create a new HTTP request, your going to have an interruption in your music.
EDIT: Probably not very SEO friendly, another other suggestions?
moneysharma — 2012-10-30T14:31:33-04:00 — #3
ya i was also thinking this only...btw thanks wolfe
starlion — 2012-10-31T08:58:52-04:00 — #4
It's technically possible with the dreaded iframe.
siteguru — 2012-10-31T09:13:48-04:00 — #5
Or ... don't play an MP3.
Unless the website is a music site or for a band/artist then having background music is annoying.
oddz — 2012-10-31T12:50:58-04:00 — #6
nope… still annoying.
tomb — 2012-10-31T13:14:03-04:00 — #7
Although on a band website the play button should be very obvious, Even here it shouldn't start until the user asks it to.
ronalds — 2012-10-31T17:45:27-04:00 — #8
henryc02 — 2012-11-05T01:36:49-05:00 — #9
PHP does not deal with audio players, flash players, ajax, css, html, or any type of players or client side language. AJAX being partly server-side, but it is a different language set altogether.