Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a global player #12

Open
johnhooks opened this issue May 19, 2024 · 0 comments
Open

Add a global player #12

johnhooks opened this issue May 19, 2024 · 0 comments

Comments

@johnhooks
Copy link
Contributor

johnhooks commented May 19, 2024

As a knowledgeable block editor user, I want a global player block, so that users can initiate playing audio from multiple sources, though only have one possible audio source playing.

Problem

The current implementation of the audio player block is standalone, each has it's own source and player controller. This means the details of what is playing are lost when the element is scrolled away from, also it would need to be found again in order to mute or pause (there are some browser controls for this, though not super intuitive).

Solution

Add a global player that would remain at a fixed location on the screen and would follow the user, providing information about what is playing and access to player controls.

Thoughts

  • This would require adding a more complex player state.

  • Allows adding playlists and player queue.

  • If the player were to use the Interactivity API, and the website use the interactive navigation, the player state would remain consistent between page navigation, allowing an uninterrupted experience.

  • This could allow the player to queue "up next" or push the new audio in front, keeping the location of the previous audio for when it is resumed.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant