Skip to main content
niteshkumar
Inspiring
June 3, 2014
Question

microphone activate

  • June 3, 2014
  • 1 reply
  • 270 views

Hi,

I am working on application using two streaming(ebdded with audio too) simultaneously with only one microphone.

The steps for issue occurance is :

1. started one stream using the only microphone.

2. started the second stream using the same microphone

3. stop the second stream.

Result: microphone used for 1st stream stops working and the activity level indicates -1.

Steps to resolve the issue:

1. I reconfigure for the microphone for first stream but didn't work.

2. I just opened the security panel, it worked.

The second step for solution however worked but I need to have some alternate of it. Please suggest. As I have to always close the security panel in when going through this solution step.

Thanks.

Nitesh Kumar

This topic has been closed for replies.

1 reply

sinious
Legend
June 3, 2014

Is this an AIR application or a Projector? If it's a SWF running on the web, you know the user is going to get a security prompt asking them if they want to grant you access to the Microphone.

If it's an application then please show the code you're using. As long as you're not using an enhanced Microphone then you can open up multiple streams on the same Mic, as long as you specify the same Mic index. Are you specifying the index?

Multiple calls to Microphone.getMicrophone() reference the same microphone. Thus, if your code contains the lines mic1 = Microphone.getMicrophone() and mic2 = Microphone.getMicrophone() , both mic1 and mic2 reference the same (default) microphone.

If you're not supplying the index then you are directly referencing the same object so anything you do to that object via the reference willl affect all other references.

How are you "stopping the stream"? What you should be doing is only getting rid of the second reference, not running any Microphone methods on the Mic it references (which is the same as the first reference).