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
Post
by 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: Select all
nsInGoing.addEventListener(NetStatusEvent.NET_STATUS,streamStatus);
(...)
public function streamStatus(e:NetStatusEvent):void {
if (e.info.code.toString()==“NetStream.Play.Startâ€
Bax
Site Admin
Posts: 4626 Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:
Post
by 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
Post
by viny » 02 Mar 2010, 08:37
Not cool !
How to disable the sound in redbox?
Thanks
Bax
Site Admin
Posts: 4626 Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:
Post
by 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
Post
by 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
Post
by 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: Select all
nsInGoing.addEventListener(NetStatusEvent.NET_STATUS,streamStatus);
(...)
public function streamStatus(e:NetStatusEvent):void {
if (e.info.code.toString()==“NetStream.Play.Startâ€
Bax
Site Admin
Posts: 4626 Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:
Post
by Bax » 10 Mar 2010, 10:25
In the AVChatManager class you already have a listener for the NetStatusEvent.NET_STATU S event. Check the the onRed5ConnectionStatus method. You can add your code there.
Paolo Bax
The SmartFoxServer Team