Skip to main content
Participating Frequently
Oct 21, 2010 3:03 PM UTC
Question

audio latency

hi, I developped a video chat application, but I have a big problem, I can't find the setttings for have a least latency as possible, either the video quality is bad or the latency is up than 5 secondes...What should i do?

Globals.vars.camW=640;

Globals.vars.camH=480;

Globals.vars.camFPS=10;

cam.setMode(Globals.vars.camW, Globals.vars.camH, Globals.vars.camFPS);
cam.setKeyFrameInterval(48);
cam.setQuality(getQuality(),0);

private function getQuality(e:*= null):Number
        {
            var value:Number;
            if (Globals.vars.appel.appelant == Globals.vars.myUser.Id)
            {
                //on regle la qualité sur la band passante obtenue dans les tests à laquelle on retire la bande passante utilisé par l'audio soit 23.8/8=2.975koctet
                value= 0.9*(Globals.vars.appel.appelantBwUp - 2.975) * 1000;
            }
            else if(Globals.vars.appel.appele == Globals.vars.myUser.Id)
            {
                value=0.9*(Globals.vars.appel.appeleBwUp-2.975)*1000;                   
            }
            return value;       
        }

    This topic is closed to new replies. Start a new post to keep the conversation going.

    7 replies

    Inspiring
    Oct 21, 2010 5:03 PM UTC

    Which version of the FMS you are using in your application?

    Translate
    fstn11Author
    Participating Frequently
    Oct 22, 2010 6:47 AM UTC

    I'm using Flash developper version 4, with action script 3.

    Translate
    Participating Frequently
    Oct 22, 2010 8:47 AM UTC

    I did not get your code clearly - but how are you deducing that you are getting latency of 5 seconds. What is the buffertime which you have set? What is network latency you are experience - if your network itself is very slow - latency would be inherent

    Translate