Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Continuous music playing on a website

I'm building a website which requires continuous music playing even between switching pages. I know I can do this with frames but that would be too detrimental to the site in general.

This website seems to be able to allow you to play music, browse around the URLs update to reflect the page you are on:

http://www.beatport.com/

Does anybody know this would be achieved?

Many thanks

like image 616
Jonny White Avatar asked Feb 16 '12 21:02

Jonny White


People also ask

How do I automatically play music on my website?

The simplest way to automatically play content is to add the autoplay attribute to your <audio> or <video> element.

How can I play music continuously?

To enable the continuous play, please tap the playback mode icon (on the mini player bar or in the now playing page) as shown below to open your “Next up” list, then tap the playback mode icon on the top right corner and change it to “Play till the end” or “Repeat the list” mode. It is a global setting.


1 Answers

While the URL changes as you navigate around, you aren't actually navigating from page to page on BeatPort. They're using HTML5's History API, particularly pushState, to update the URL in the browser when doing AJAX page loads.

like image 157
ceejayoz Avatar answered Sep 30 '22 09:09

ceejayoz