Answer the question
In order to leave comments, you need to log in
How to overcome echo during P2P Flash call in Chrome (PPAPI Flash)?
I am making an application for P2P video calls using RTMP, RTMFP protocols.
Unfortunately, there is no way to get acoustic echo cancellation to work in PPAPI Flash used in Google Chrome. All other browsers are fine.
*PPAPI Flash is disabled in Chrome on the "chrome://plugins/" page.
Test application:
- via RTMP;
- via RTMFP (for now, manual transmission of peerID).
*When you click on the tilde - a log appears with the settings of the microphone and camera.
Sources - RTMP , RTMFP .
The following are used as a server: for RTMP - Wowza, for RTMFP - Cirrus.
Code for setting up and receiving a microphone:
private function getMicrophone():Microphone
{
if (!Microphone.isSupported) { return null; }
var mic:Microphone = Microphone.getEnhancedMicrophone();
if (mic) {
var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();
mic.enhancedOptions = options;
} else {
mic = Microphone.getMicrophone();
if (!mic) { return null; }
}
mic.setUseEchoSuppression(true);
mic.codec = SoundCodec.SPEEX;
mic.setSilenceLevel(0);
mic.framesPerPacket = 1;
return mic;
}
Answer the question
In order to leave comments, you need to log in
Have you tried swapping lines?
mic.codec = "Speex"
mic.setUseEchoSuppression(true);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question