0 Replies Latest reply on Feb 1, 2013 4:39 AM by Ankit_Gupta

    Voice chat Problem in Peer to Peer Application

    Ankit_Gupta

      Hi i am working on Peer to Peer chat Application, when i do one to one voice chat or multiple voice chat, it doesn't work, I mean to say sometime other's can listen my voice and vise a versa, but sometime my voice gets break or cut off   might be due to streaming problem or something else i don't know?? what is the problem not getting it.

      Here is the code for my microphone which i have used

       

                                              _mic = Microphone.getMicrophone();

       

                                              Security.showSettings(SecurityPanel.MICROPHONE);

                                              try {

       

                                                        _mic.setUseEchoSuppression(true);

                                                        _mic.setLoopBack(false);

                                                        _mic.gain=50;

                                                        _mic.rate=11;

                                                        _mic.codec = SoundCodec.NELLYMOSER;

                                                        _mic.setSilenceLevel(0, 4000);

       

                                                    } catch (e:Error) {

                                                        trace("no mic detected")

                                              }

       

      Thanks in Advanced