mediacapture-output
mediacapture-output copied to clipboard
Should the spec define specific static audio output device IDs
It might be useful to define specific values for audio output device IDs. Such values could be:
- 'default' or '', https://github.com/w3c/mediacapture-output/issues/85
- 'earpiece' (and potentially 'speaker'), most useful for phones that have both a loudspeaker and an earpiece
- 'none': mute a whole page
As a web developer, it would be much better to see these as attributes of devices. It's a frustrating user experience today for media capture to show a user a list of microphones, three of which are potentially the same thing. It's unfortunate to have to carry that problem forward into new APIs.
Cannot the values from pacmd or pactl be used? Missing from the list is 'speech-dispatcher'.
DJ software needs to send different audio to the speakers and the headphones, and needs to know which is which.