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
Audio device selection #854
Conversation
just testing it, works great on my machine! some small points I've noticed:
|
I believe the user needs to give permission in order to access the audio device (that is how I got it to work on my end), Im not sure if there is a way around it (maybe it depends on your system/ security config?). I don't think you can change the dialog message either even though it is a bit misleading (or if it is possible, I could not find a way to do it). The good news is that you should not keep hitting the dialog once you have approved it once. It should also only trigger if the user clicks the button. It is a tiny annoyance, but hopefully not too bad. I updated the text based on your feedback :) |
thanks!
ok i've now also tested it without One other thing that I've noticed is that once a device is chosen, the "System Standard" cannot be selected anymore. In many cases it might actually be desirable to use the System Standard, maybe there is a way to make it selectable. But we can also do that in a separate PR if you want. |
I could not figure out a way to get the id of the system default device, otherwise I agree it would be nice to select it again. Setting to null or “default” results in error |
ok maybe that's just another browser thing that has to be accepted if there's no other way. Seems I've created some conflicts in settings.mjs :-/ |
maybe to clear the selection a reload could be requested? |
I want to see if I can play around with it some more to find a workaround |
@felixroos I solved the issue, selecting "System Standard" resets the audio context and does not set the sinkID. This should be ready to go now. |
715ddfa
to
9979a08
Compare
@felixroos I updated this to work with vanilla, it should be ready to go. |
thanks! the big changes are now all out of the door, so I can finally look at your PRs :) |
just found a bug: when I switch between outputs, I sometimes get:
@daslyfe any idea why this might happen? |
Currently only Chromium browsers seem to have the ability to set the device ID for an audio context. clients without setSinkID will not show this dropdown.