5 ms·
Ask HN: Best way to continuously play audio when user navigates between pages?
In the same way as Soundcloud, what is the best way to have audio continuously playing while a user navigates between pages?
Previously this could be done by separating out the audio player from the rest of the site, and loading everything else via AJAX upon navigation, rather than refreshing the page.
Is this still the best way, or can React/Angular/<jsframework> provide more efficient ways of doing this? Is this a good use-case for building a Single Page App?
- tambourine_man 9y agoSPA seems like the only way. Use push state to update history and URL
- jmbull 9y agoFrames. Edit: Rather, iframe. Just put your player in the wrapping frame.