Skip to main content
March 30, 2011
Question

Microphone starting muted on AIR application SDK 2.5

  • March 30, 2011
  • 1 reply
  • 2577 views

According to the documentation

http://help.adobe.com/en_US/air/reference/html/flash/media/Microphone.html

"Content running in the AIR application sandbox does not need permission to access the microphone and no dialog is displayed. AIR content running outside the application sandbox does require permission and the Privacy dialog is displayed"

But I'm having problems starting the Microphone object, which starts muted and permissions need to be given right clicking on the flash object.

This function returns always true before permissions is given:

public function isMuted():Boolean {

var mic:Microphone = Microphone.getMicrophone();

return mic.muted;

}

The swf loaded is inside the application sandbox, but it's failing also from the debugger.

Any ideas what else to look?

Thanks,

Guille

This topic has been closed for replies.

1 reply

Participating Frequently
March 31, 2011

I just tried the code you provided in a single flex project(AIR based), always return false(expected result).

below is my suggestion:
1> retest the result in a single project
2> make sure the swf loaded inside the application sandbox

March 31, 2011

Hi, thanks for your answer.

I'm using html/ajax, and the swf is embeded in a page:

<object id="VideoPhone" type="application/x-shockwave-flash">

<param name="movie" value="app:/lib/webphone/VideoPhone.swf"/>

<param name="wmode" value="transparent"/>

</object>

Both the html and the swf are packed in the .air distributable.

Maybe some parameter missing?

Thanks again,

Guille