-
Notifications
You must be signed in to change notification settings - Fork 58
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
Output Device Selection in Web Audio API: AudioContext.setSinkId() #766
Comments
Adding @svgeesus for visibility: we initially discussed this feature is too small for TAG review, but I am requesting it here per Chrome's launch process. |
TAG review of small, focused features is perfectly fine. |
A sentence motivating the user need for each of those two improvements would be a helpful addition to the explainer. Why does WebAudio API need them? Why does HTML not have them, and should it? |
Thanks for the feedback, @svgeesus! I've added the "Motivation" section on the explainer. (i.e. public design doc above)
For this question, I am not sure if I can answer it with confidence. For what it's worth, there's a method selectAudioOutput() under MediaDevices, but I don't think that is suitable for Web Audio API. |
Hi @hoch, you mentioned that selectAudioOutput() is not suitable for Web Audio API, could you update the explainer document to explain the reason behind the design choices? |
@maxpassion Here's my response to the question (link): Using selectAudioOutput() under MediaDevices: Although the Audio Output Device API spec mentions briefly about AudioContext, it lacks the detail of how Web Audio API is controlled by this method. (As of writing, no browser has implemented this feature) Additionally, the method is designed to change the audio output device for all instances of MediaElement and AudioContext in a document. Even with the implementation of selectAudioOutput(), AudioContext doesn't have the ability to set the output device separately whereas AudioElement does. |
Thanks for this review request. We're happy to see this move forward and we're especially glad to see it do so with multiple stakeholder support and the attention to privacy considerations. We are slightly concerned that some of the functionality is duplicated elsewhere in the platform, however we understand the different context. Can you please move the explainer into a markdown file in the appropriate repo? 🎶 |
@torgo Thanks for your review! I'll move the explainer to https://github.com/WebAudio/web-audio-api. |
Hello,
I'm requesting a TAG review of AudioContext.setSinkId().
AudioContext.setSinkId sets the ID of the audio device to use for output. This allows the AudioElement to route audio to a connected output device of user's choosing.
Further details:
We'd prefer the TAG provide feedback as (please delete all but the desired option):
☂️ open a single issue in our GitHub repo for the entire review
The text was updated successfully, but these errors were encountered: