AS3 Flash Player on Chrome remembers hardware settings even when hardware is not present - actionscript-3

I am making a voice chat application and am accessing the microphone through the Flash Player. I check for the microphone via the Microphone.getMicrophone() function.
If the microphone is not connected the above function call output is null and thereby I tell the user, through a dialog box with an OK and SKIP button, that there is no microphone attached. If the user clicks on the OK button, I check for the microphone again else skip this step.
On Chrome, the flash player initially detects that no microphone is attached. I attach a microphone and it work fine. Now I refresh the page and remove the microphone again. Again the Flash Player checks for the microphone and the output of the above function is not null. I close Chrome and follow the above steps, it works fine again.
Does Chrome internally store the detected hardware settings anywhere? If yes, how can I clear it using AS3?
On Firefox and Internet Explorer, it works perfectly.

Related

Windows phone How can I detect an incoming call

I have a app that runs a AudioPlaybackAgent and I want that everytime the phone receive a call, the audio get paused, but i didn't found anything about that.
If you are using Background Audio Manager, Phone will automatically Pause the playback and once call is disconnected it will automatically start playing.

Windows phone app player not working when submitted to the store

I have windows universal 8.1 app with two players. When I deploy locally using app deployment application or through visual studio it is working fine but when I submit app to the store, one player fails to work.
I am using microsoft player framework with this hls plugin https://phonesm.codeplex.com/
The player seems to load since I know player media opened event has triggered but player control is missing and there is no video or audio.
When try to play video content nothing happens but when I try to play audio only content I get audio but there is still no visible player control (player visibility is set to visible ofc).
The question is, how is it possible that the same package acts different whether deployed locally or acquired from store?

ActionScript 3.0: Wait for response from Flash Player Settings window

I recently received some code from another developer and there's one piece I would like to rework. It's a flash app that works with mic and webcam. When it is started you are prompted to press a button - after that the usual flash player settings windows appears asking you to allow access to mic and cam. The application needs to wait for user's response on this question. It was achieved in the code I received in a rather awkward fashion. Application progressed on mouse movement event, which would not be registered since the flash player settings popup block the area. Once it out of the way - any mouse move would make application to go on. I need to rework with in some better way, because this piece of code is also used in AIR application that doesn't ask for allowance and, therefore, if you click the opening button you would need to move your mouse in order to get things running. I believe there must be some decent way to notify the app that settings popup is gone. Could anyone advice on this?
The correct way to do this in Flash Player is to listen for StatusEvent.STATUS event which is dispatched after the user either allows or denies you access to their mic. See the documentation for Microphone.getMicrophone().
In AIR, however, you don't have to ask for user's permission to access their mic and camera, so this event is not dispatched when your application gets access to the input device. In that case, you can check through Capabilities.playerType property if your code is running in AIR and then proceed with doing what you would have done in response to receiving permission to access user's input devices.

AS3 showSettings(SecurityPanel.PRIVACY) not working

I am trying to call
Security.showSettings(SecurityPanel.PRIVACY);
from some action script in Flex. It works on 2 PCs I am testing on, but not on others. What could be causing this?
On the same PCs it doesn't work on, I get no prompt to allow/deny my camera when I do:
var cam:Camera = Camera.getCamera();
My local video appears to be white in this case. These PCs have working web cams, but the prompt never appears.
Can anyone help?
It is possible a user was previously prompted to allow access to the camera or microphone and clicked always deny. You can change this by going to the Global Security Settings pane and clearing the blocked privilege by clicking always ask.

How to skip the security setting on flash player?

Can we skip the security setting (for camera permission) on flash player when we attached camera (by code) ? So every time we use the flash app, the permission is always 'allow'. Because I am using camera for local purpose only, so the camera images will not shared to others (standalone app, not web apps). So, the user must not click on it all the time.
Is it possible ?
Something you must understand is that Flash is a sandbox environment, you will not be able to change or influence any client side browser settings.
The best solution for this may be to inform the user via an alert to make sure that there flash security settings are set correctly.