terrible echo

Post your questions and bug-reports about the audio/video streaming add-on based on Red5 Media Server.

Moderators: Lapo, Bax

viny
Posts: 213
Joined: 04 May 2006, 09:18

terrible echo

Postby viny » 01 Mar 2010, 18:11

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]nsInGoing.addEventListener(NetStatusEvent.NET_STATUS,streamStatus);
(...)

public function streamStatus(e:NetStatusEvent):void {
if (e.info.code.toString()==“NetStream.Play.Startâ€
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 02 Mar 2010, 08:14

You will need to edit the source code of the RedBox classes.
Paolo Bax
The SmartFoxServer Team
viny
Posts: 213
Joined: 04 May 2006, 09:18

Postby viny » 02 Mar 2010, 08:37

Not cool ! :(

How to disable the sound in redbox?

Thanks
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 02 Mar 2010, 09:19

viny wrote:How to disable the sound in redbox?

When sending a chat request (AVChatManager.sendChatRequest method), set the enableMicrophone parameter to false.
Paolo Bax
The SmartFoxServer Team
viny
Posts: 213
Joined: 04 May 2006, 09:18

Postby viny » 02 Mar 2010, 09:27

Thanks...

Perhaps in your next API the echo problem will be resolve
viny
Posts: 213
Joined: 04 May 2006, 09:18

Postby viny » 08 Mar 2010, 15:57

Please can you help me ?

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

[code]
nsInGoing.addEventListener(NetStatusEvent.NET_STATUS,streamStatus);
(...)

public function streamStatus(e:NetStatusEvent):void {
if (e.info.code.toString()==“NetStream.Play.Startâ€
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 10 Mar 2010, 10:25

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.
Paolo Bax
The SmartFoxServer Team

Return to “RedBox”

Who is online

Users browsing this forum: No registered users and 15 guests