Chrome ADM

129 views
Skip to first unread message

kiranr...@gmail.com

unread,
May 15, 2023, 1:45:48 AM5/15/23
to discuss-webrtc
Hi All

I am trying to understand how chrome is implementing ADM, specifically device selection. In the process I came across the below code.
https://cs.chromium.org/chromium/src/remoting/protocol/webrtc_audio_module.h
https://cs.chromium.org/chromium/src/remoting/protocol/webrtc_audio_module.cc

return 0;
}

Function seems to simply return.I guess I am missing some flow here.
Would someone like to point me to how Chrome is implementing ADM code?

Thanks in advance.

Kiran 

Henrik Andreasson

unread,
May 15, 2023, 2:22:07 AM5/15/23
to discuss...@googlegroups.com
Only a fraction of the native ADM methods are implemented in Chrome; most are empty.
An example of the ADM being used by Peerconnection can be found here.
Chrome uses a multi-process architecture and ADM parts in the render process only work as a proxy to the implementations which contain the native audio parts in the audio process.
All these different implementations can be found here.

Henrik Andreasson

unread,
May 15, 2023, 3:14:34 AM5/15/23
to discuss...@googlegroups.com
Device selection in Chrome is not using the WebRTC ADM as base; instead more complex web APIs are utilized.
Audio output devices are selected using setSinkId and input devices by using getUserMedia.
This demo illustrates how to use these APIs.

kiranr...@gmail.com

unread,
May 16, 2023, 10:47:03 PM5/16/23
to discuss-webrtc
Thanks for your time.
Reply all
Reply to author
Forward
0 new messages