ISBX / apprtc-ios

A native iOS video chat app based on WebRTC
BSD 3-Clause "New" or "Revised" License
1.35k stars 413 forks source link

[Audio] Get remote and/or local audio stream data #111

Open agmoElle opened 6 years ago

agmoElle commented 6 years ago

Hi, Was wondering if there's a method or a workaround of sorts to retrieve the remote and/or local audio stream sample buffer data from webrtc? Been looking around for a couple of days now, and most of the similar questions are either unanswered or abandoned entirely.

I'm trying to merge the audio stream from the local and remote tracks in a webRTC connection between 2 devices and then either save to a file or to push to another stream.

I've looked at the RTCAudioSession object but nothing seems to help. I've also considered manually getting the microphone stream and app audio (maybe using AudioKit or something?) but am not sure if that's the way to go (._.) So, I was wondering if anyone has a different approach or is my 2nd method actually the way to go about this.

Would appreciate any feedback or any pointers regarding this.
Thanks!

ssassi commented 6 years ago

I am also very interested on accessing to the local audio stream for similar purposes. Thanks.