1 Reply Latest reply on Jun 8, 2012 1:51 AM by Victor mo

    a problem about getEnhancedMicrophone()

    Victor mo

      In my AIR application

      code as below


      step 1.

      var microphone:Microphone = Microphone.getEnhancedMicrophone();



      step 2.


      var connection:NetConnection = new NetConnection();



      step 3.


      var httpService:HTTPService =  new HTTPService();

      httpService.method = "POST";

      httpService.useProxy = false;

      httpService.resultFormat ="xml";

      httpService.url = serverUrl+"/BpMaster?id=1000";



      step 4.

      when connection.connected==true ,i publish a NetStream to red5 server, code as below


        var nsVoice:NetStream = new NetStream(connection);

        nsVoice.client = this;


        nsVoice.bufferTime = 0;

        nsVoice.publish("a_test", "live");


      then microphone can not be used anymore, microphone.gain==0 forever,without step3 everythine going well.


      please help me solve this problem ,or explain the reason