Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4343358
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:44:31+00:00 2026-05-21T11:44:31+00:00

I’ve read this question and I understand that its only possible to do it

  • 0

I’ve read this question and I understand that its only possible to do it with frames (I really don’t want full-site AJAX):
How to play a background audio across multiple HTML pages.?

My question is that is there any way to have a small, or maybe invisible frame which plays the music and some nicely designed control for it somewhere in the main frame? Actually I would like to solve it with using SoundCloud, but if its impossible with that then I’m open for some custom player, like FlowPlayer or SoundManager 2.

What I would like to do is to have a website for a small band (I’m doing it voluntarily), which has a couple of pages, like photos.php, biography.php, music.php and I would like to have a selection of music tracks on the music.php page, but I would like to keep the music playing even if the visitor navigates out of the music page. For example it must be the most obvious task when someone starts a music then goes to photos.php and views the photos, while the music is still playing.

What would be the best way to do it?

Update: Of course, I don’t want the music to start automatically.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:44:31+00:00Added an answer on May 21, 2026 at 11:44 am

    I strongly recommend against it, but if you really wanted it there are some options:

    1. Frame
    2. Full-site AJAX (not that different to frame really, but a nicer option)
    3. AJAX player synchronisation
    4. URL Parameter + Rewrite links
    5. Popup

    Frame / AJAX Site

    The frame is probably the “best” case (it would appear as one site to your viewers). The full-site AJAX is basically the same principle. However you said you are against these options (but not why).

    AJAX-player synchronisation

    The AJAX-player synchronisation would involve storing a cookie to identify the user and having an AJAX player call a back-end which stored the current playing time for the song for the current user.

    Then, on page load you could lookup this time, and start the song there.

    However, you’d still get slight skips between pages (comparable to when you play YouTube in an embedded frame, then half way through the song skip through to “real YouTube” rather than the embedded video, and it continues, except they do this with URL parameter passing).

    URL Parameter + Rewrite links

    Another way to achieve the “synchronisation” option would be to have URL parameters that define the current song moment. Then on every “tick” (say a second/half second) you could use JavaScript to rewrite all the links on the page to include an updated URL parameter. However, this would mean if someone opens your site in a new tab/window/without clicking a link on your page the player would restart. This would happen in most of these options anyway though so is perhaps not a real downside.

    The way to do this would be:

    1. Make sure your player onload checks the URL GET parameter to determine start playing time.
    2. Have a jQuery/JS “tick” function which executes every n milliseconds (you’ll have to test to find the ideal, I would imagine 500/1000 ms at least).
    3. In the “tick” function, have all links (a tags with a href) change the ?paramname=0 bit that you’ve added to them all to use the new start time.

    If you can set cookies from javascript (which I didn’t think you could, but there might be workarounds now), this could be made even easier by having your player check the cookie on load, and then having your tick function update the cookie rather than rewriting all URLs.

    Popup

    You could load the player in a popup (of course checking to make sure you don’t start a new popup on every page load). This is probably the easiest option to achieve what you want.

    My recommendation

    My recommendation is to not play music without permission – have a player (which could be on a frame/in an unchanged component of a full AJAX-site/in a popup) which requires a user-click to play. Alternatively, make sure the music is good enough that they will want to have YouTube / their media player playing it in the background anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I know there's a lot of other questions out there that deal with this
I don't have much knowledge about the IPv6 protocol, so sorry if the question
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am doing a simple coin flipping experiment for class that involves flipping a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.