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
The simplest way to automatically play content is to add the autoplay attribute to your <audio> or <video> element.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With