This module seems great for allowing an easy user listening feature while browsing within the page - reading an article, etc. Is there any way to extend this somehow using iframes or some other new htmx method... I'm not sure, but where the user can continue navigating the full site to different pages?

Comments

w01f created an issue. See original summary.

sujan shrestha’s picture

Hi David, Thanks for the great idea! I really like the concept of having the player remain persistent while browsing the site, it would definitely enhance the user experience. Currently, the player works within the same page, but if users navigate to a different page, they need to open a new tab to continue listening while interacting with other content (like reading articles).
i will look into adding this feature, so the player can persist across different pages, as you suggested.

w01f’s picture

Not sure yet what solution the Sticky Audio Player module maintainer may have come up with, but possibly worth checking out - https://www.drupal.org/node/3561095.

w01f’s picture

Also came across https://www.thisamericanlife.org/ that has a persistent audio player - it's a popular site, but actually pretty old (Drupal 7) so not sure if their solution is best practices, etc. or if there's a more modern, performant way to do this.

sujan shrestha’s picture

Version: 1.1.4 » 1.2.0
Status: Active » Fixed

1.2.0 covers part of this with two new settings (under "Behavior" in the formatter or Views settings):

- Dock the playing player: when a playing player scrolls out of view, it stays at the bottom of the screen until the visitor scrolls back or closes it.
- Remember the playback position: the position is saved in the visitor's browser, so when they come back to the page the audio continues where it stopped.

Audio that keeps playing across page loads is still open. A normal page load stops all audio, so this needs either a player that lives outside the page content or loading pages without full reloads. Both are bigger changes, so I'm keeping this issue open for that. Feedback on which approach would suit your site is welcome.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.