Open gouravd opened 8 years ago
v2.0.0 had been callback the PCM data to caller. You can do it on v2.0.0 if you want.
public interface AudioSourceCallback {
void onAudioSourceAvailable(ByteBuffer srcBuffer, int size, boolean isEof);
}
Thanks, since this is new, could you please share any kind of documentation or sample code so that I understand what I need to do.
I am unable to figure out how to achieve this in the new V2. can you please give hints
AudioSourceCallback#onAudioSourceAvailable
is the callback of the PCM from the microphone. If you want to do the Echo Cancellation, you should import the Echo Cancellation algorithm for the PCM.
I was testing PLDroidCameraStreaming for 1-1 video chat. User1 live streams and subscribes to User2's live stream and Vice versa.
Everything works fine except there is echo. Can you please implement echo cancellation?