Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change of audio output device via getUserMedia()

386 views
Skip to first unread message

mich...@surfsolutions.com

unread,
Jul 26, 2016, 3:09:56 AM7/26/16
to mozilla-...@lists.mozilla.org
Hi all,

why getUserMedia() does not allow to change an audio output device as well with provided capturing devices mic and camera?

When I want to change the usage of speakers to my headset that is connected via USB I cannot. I is very strange that there is no such possibility.

Best Regards
Michael

Eric Davies

unread,
Jul 27, 2016, 9:42:00 PM7/27/16
to mozilla-...@lists.mozilla.org
getUserMedia is poorly named. It should really be called getMediaSource, but changing it at this point would break a lot of code and the webrtc API changes enough already.
You want to look into the setSinkId method of the video object(https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setSinkId), which is equally poorly named but probably does what you want.

mich...@surfsolutions.com

unread,
Jul 28, 2016, 4:32:44 AM7/28/16
to mozilla-...@lists.mozilla.org
Hi Eric,

Thanks for the answer.

The basic support of this function for Firefox will be starting from version 49.
Does it mean that there is no other ability to change the output audio device
on the current versions 47 and 48?


Michael

Jan-Ivar Bruaroey

unread,
Aug 11, 2016, 4:50:14 PM8/11/16
to mozilla-...@lists.mozilla.org
Hi Michael, that is inaccurate (note the 49 in the compatibility table
in the link is Chrome). Firefox implementation of setSinkId is tracked
in https://bugzil.la/1264375 which has not been started yet AFAIK.

..: Jan-Ivar :.

0 new messages