Custom ADM for Mac OS X

287 views
Skip to first unread message

Elise Monaghan

unread,
Jul 13, 2021, 11:07:06 AM7/13/21
to discuss-webrtc
Seems like there is no way to pass/inject a custom ADM to the RTCPeerConnectionFactory initialization on OS X. Does this mean there is no way on OS X to do any custom audio device manipulation egs: set a specific audio device as the capture device?

Elise Monaghan

unread,
Jul 20, 2021, 9:21:54 PM7/20/21
to discuss-webrtc
Answering my own question in case it helps anyway: I created a class that wraps a native adm instance (RTCAudioDevice), and exposes methods for the initialization of the native adm as well as invoking functions on it. I then had to modify RTCPeerConnectionFactory to take in a reference to an instance of RTCAudioDevice. In this way, the client is now able to call ADM functions on the underlying native adm. Note that the native ADM needs to be created with the same task queue factory, and ON the same worker thread, that the RTCPeerConnectionFactory is associated with.

Gonzalo Garzon

unread,
Sep 14, 2021, 3:59:55 AM9/14/21
to discuss-webrtc
Hi Elise, can you share the code with the changes needed?
It's a really nice to have feature but I'm lost in the native code of the library.

Thanks in advance


Long Enertee

unread,
Aug 21, 2024, 10:19:00 AM8/21/24
to discuss-webrtc

Hi Elise Monaghan,

I’m encountering a similar issue. Could you please share your code or describe the steps you took to achieve this? I’m really in need of this solution and would greatly appreciate your assistance.

Thank you!


Vào lúc 08:21:54 UTC+7 ngày Thứ Tư, 21 tháng 7, 2021, Elise Monaghan đã viết:
Reply all
Reply to author
Forward
0 new messages