Closed Bug 1741199 Opened 3 years ago Closed 3 years ago

NotFoundError from selectAudioOutput

Categories

(Core :: WebRTC: Audio/Video, defect)

Unspecified
macOS
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: jib, Assigned: karlt)

References

Details

STRs:

  1. Have a second speaker device like airpods attached to a system with speakers (like a laptop)
  2. Enable media.setsinkid.enabled in about:config
  3. Open https://jan-ivar.github.io/dummy/select_audio_output.html
  4. 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

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

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.