Open ajay-rah opened 2 years ago
cc @jernoble @eric-carlson @jyavenard
This looks ok to me. HTMLMediaElement has a way to set its output and it makes sense to be consistent for AudioContext. It is a bit of a burden for a web page to set sinkId for all individual elements/contexts, maybe there should be something similar in AudioSession API.
That is for HTMLMediaElement.setSinkId
, not AudioContext.setSinkId
Request for position on an emerging web specification
Information about the spec
Design reviews and vendor positions
Anything else we need to know
AudioContext.setSinkId sets the ID of the audio device to use for output. This allows the AudioContext to route audio to a connected output device of user's choosing.