J
J
jroslavk2014-07-03 00:16:08
P2P
jroslavk, 2014-07-03 00:16:08

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;
}

Went through a lot of options, I just can not solve the echo problem.
There was only a crazy idea to try as a Flash Media Server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Herzinberg, 2015-09-01
@Herzinberg

Have you tried swapping lines?
mic.codec = "Speex"
mic.setUseEchoSuppression(true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question