man2015 / red5phone

Automatically exported from code.google.com/p/red5phone
0 stars 0 forks source link

Incoming audio stream delay #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Red5 0.8 and last Red5Phone (revision 27).
2. Try to call from a remote machine. So there are 3 parties (3 different
machines): remote client, red5 server, SIP proxy.

What is the expected output? What do you see instead?
Voice coming from flash client to the gateway goes well, but voice coming
from local phone (gateway) to flash client has a delay about 2 seconds.
Expected: the same as outgoing stream - no delay.

What version of the product are you using? On what operating system?
Windows Server 2008, Red5 0.8, Red5Phone revision 27.

Please provide any additional information below.
When application is used from the server machine, this delay is not noticeable.

Original issue reported on code.google.com by alx...@gmail.com on 13 Jul 2009 at 10:08

GoogleCodeExporter commented 9 years ago
                    if ( false) {

                        encoderMap = CodecImpl.encode
(encoderMap, tempBuffer, encodedStream.bytes);
                        rtmpUser.pushAudio
(NELLYMOSER_ENCODED_PACKET_SIZE, encodedStream.bytes, timeStamp, 82);
                    }
                    else {

                        byte[] aux = ResampleUtils.resample(
                                (float) ( 8.0 / 11.025 ), tempBuffer );

                        rtmpUser.pushAudio( aux.length, aux, timeStamp, 6 );
                    }

Try this instead in RTPStreamReciever to avoid nellymoser encoding

Original comment by olajide....@gmail.com on 13 Jul 2009 at 1:12

GoogleCodeExporter commented 9 years ago
I don't know why but now it also has a delay then launching client on the same
computer where Red5Phone is installed.

Delay doesn't depend on true|false in RTPStreamReciever. It's still more than 1 
sec.

Original comment by alx...@gmail.com on 13 Jul 2009 at 1:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just noticed very interesting thing.

On local computer both paths (true|false) work ok.
But when I put a breakpoint inside current working path and wait some time 
(doesn't
matter how much) then run, a constant (about 1 sec) delay appears.

The same behaviour with remote configuration, but in this case i don't put any
breakpoints. I haven't tried yet false path with remote configuration.

Original comment by alx...@gmail.com on 13 Jul 2009 at 2:11

GoogleCodeExporter commented 9 years ago
Was this ever solved? I have the same problem. Thanks.

Original comment by pozsarba...@gmail.com on 10 Nov 2010 at 9:31

GoogleCodeExporter commented 9 years ago
timestamp problem

Original comment by jimc...@gmail.com on 27 Oct 2011 at 3:49