Custom Audio Capturer on Native C++ Library

356 views
Skip to first unread message

ha...@blacknut.com

unread,
Oct 30, 2017, 6:20:45 AM10/30/17
to discuss-webrtc

I'am building a WebRTC server using the Native C++ Branch of Webrtc. I managed to get the peerconnection and make a CustomVideoCapturer(That i can give if anyone interested) .
I was wondering if there is a way to achieve a custom audio capturer ?
I can't seem to find a audio capturer class to override or something to help me in my quest.
I read and found some code around this question, but it is allway outdated, as it happened to me for the CustomVideoCapturer. So again i need your help.

Any advice would be much appreciated.

Sergio Garcia Murillo

unread,
Oct 30, 2017, 6:31:25 AM10/30/17
to discuss...@googlegroups.com
You can either provide an external AudioDeviceModule to the peeerconnectionfactory creator method, or implement the AudioSourceInterface and pass it to the peerconnection facotry when you create the audio track. Note that the later will bypass all the libwebrtc audio processing (AEC mainly).

Best regards
Sergio
--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/0d0eabd9-85e8-46d6-85b7-9786a6dc8f29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ha...@blacknut.com

unread,
Oct 30, 2017, 10:37:00 AM10/30/17
to discuss-webrtc
Thank you Mister Murillo,
I'll try the second one (fits the way i developed) then the first one, and get back here.

Best regards

ha...@blacknut.com

unread,
Oct 31, 2017, 6:04:52 AM10/31/17
to discuss-webrtc
I managed to build an External AudioDeviceModule and wire it to webrtc but i can't seem to have sound on my web client side.
I feed AudioTransport::RecordedDataIsAvaible with PCM stream but nothing happens. Do i need to have a Decoder before feeding or an encoder afterwards before sending ?

Thank you for your help

rajdip

unread,
Feb 15, 2018, 5:07:34 AM2/15/18
to discuss-webrtc
You publish it on Github or anywhere else. I would very helpful for just want to take a plunge at this great tech. Also, I would love to study your code.
Reply all
Reply to author
Forward
0 new messages