Closed
Bug 1741199
Opened 3 years ago
Closed 3 years ago
NotFoundError from selectAudioOutput
Categories
(Core :: WebRTC: Audio/Video, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jib, Assigned: karlt)
References
Details
STRs:
- Have a second speaker device like airpods attached to a system with speakers (like a laptop)
- Enable
media.setsinkid.enabled
in about:config - Open https://jan-ivar.github.io/dummy/select_audio_output.html
- Click the
<Default speakers>
button, pick an audio output device, and hit Allow in the prompt.
Expected result: Audio rerouted to the audio output device
Actual result: NotFoundError
Assignee | ||
Comment 1•3 years ago
|
||
Just need to destructure from the MediaDeviceInfo
.
- const deviceId = await navigator.mediaDevices.selectAudioOutput();
+ const {deviceId} = await navigator.mediaDevices.selectAudioOutput();
Assignee: nobody → karlt
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 2•3 years ago
|
||
For the tone, the AudioContext
needs to either be created or resume()
d after a user gesture.
You need to log in
before you can comment on or make changes to this bug.
Description
•