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

Allow player to control arbitrary audio out #143

Open
sammbeller opened this issue Sep 15, 2024 · 1 comment
Open

Allow player to control arbitrary audio out #143

sammbeller opened this issue Sep 15, 2024 · 1 comment
Assignees

Comments

@sammbeller
Copy link

Is your feature request related to a problem? Please describe.
I would like to use useAudioPlayer to fulfill the requirements for this issue but we need to be able to control a remote "jukebox" - the audio out of the computer the server is running on.

Describe the solution you'd like
I'd like useAudioPlayer to take an optional AudioOutProvider which implements against a defined API the required calls to support useAuditoPlayer's API. For a remote server this would involve calling out to the server to control playback of the audio. I would be happy to help contribute to this solution or implement it myself, but I wanted to open this issue to start the conversation and determine if you're open to these changes.

@deluan
Copy link

deluan commented Sep 15, 2024

Just to add to what @sammbeller said, ideally we would specify the AudioOutProvider using a React Context.Provider (https://react.dev/reference/react/useContext)

In this scenario, the current Howl-based audio out would be the default provider, if none is set in the context.

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

3 participants