Page 1 of 1

terrible echo

Posted: 01 Mar 2010, 18:11
by viny
hello,

I have a terrible echo on my voice .

What is the problem ?

here is my code :

Code: Select all

mic = Microphone.getMicrophone();	
				
                mic.setUseEchoSuppression(true);
                mic.setSilenceLevel(40,1000);


I found two codes for red5 and to delete echo


Code: Select all

var volumeVideoTransform:SoundTransform = new SoundTransform();
nsInGoing.play(username);
if (username==myUser.username) {
    volumeVideoTransform.volume = 0;
    nsInGoing.soundTransform = volumeVideoTransform;
    // TRES IMPORTANT : il faut le spécifier à CHAQUE FOIS ! ! !
}

Code: Select all

nsInGoing.addEventListener(NetStatusEvent.NET_STATUS,streamStatus);
(...)

public function streamStatus(e:NetStatusEvent):void {
    if (e.info.code.toString()==“NetStream.Play.Startâ€

Posted: 02 Mar 2010, 08:14
by Bax
You will need to edit the source code of the RedBox classes.

Posted: 02 Mar 2010, 08:37
by viny
Not cool ! :(

How to disable the sound in redbox?

Thanks

Posted: 02 Mar 2010, 09:19
by Bax
viny wrote:How to disable the sound in redbox?
When sending a chat request (AVChatManager.sendChatRequest method), set the enableMicrophone parameter to false.

Posted: 02 Mar 2010, 09:27
by viny
Thanks...

Perhaps in your next API the echo problem will be resolve

Posted: 08 Mar 2010, 15:57
by viny
Please can you help me ?

I don't know how to modify API redbox to delete echo with this code

Code: Select all

nsInGoing.addEventListener(NetStatusEvent.NET_STATUS,streamStatus);
(...)

public function streamStatus(e:NetStatusEvent):void {
    if (e.info.code.toString()==“NetStream.Play.Startâ€

Posted: 10 Mar 2010, 10:25
by Bax
In the AVChatManager class you already have a listener for the NetStatusEvent.NET_STATUS event. Check the the onRed5ConnectionStatus method. You can add your code there.