How to skip the security setting on flash player? - actionscript-3

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.

Related

Editing Chrome's AutoplayAllowlist

We're building a web app for our business that is specifically designed to make audible alarms when things go bad, but it seems we're blocked by Chrome's autoplay policy.
We can get around this by checking on load whether the AudioContext state is suspended and then show a dialog box to accept sound, which then runs the resume() method on the audiocontext, but it seems stupid that every time someone logs in it first asks them to allow sound for an app whose sole purpose is to audibly alert the client to a problem.
I did read here that you can override this behaviour for specific urls by changing the AutoplayAllowlist... but there seem to be no instructions on how to do this at all. Any help?
The workaround was just to try play() and catch the error to then request the user allow sound and offer browser specific instructions on how to change the site settings to always allow sound.

Is that possible to access the cam and mic of remote user in video chat using actionscript3.?

I am working on actionscript3.
Here i am using the av-chat module for video chat.i add up the recording functionality in it.Now i also want to record the remote user video in it.
Is that possibility in Action script to Access the cam and mic of remote user.??
Thanks in advance.
When you use Camera.get() or Microphone.get() methods, Flash Player displays a Privacy dialog box, in which the user can allow or deny access to their camera and microphone. I hope it will work.

BackgroundAudioAgent with a dynamic playlist

I am developing an app that has the capability of playing audio tracks streamed from a server. This app needs to be able to playback the audio even when the screen is locked or if the app is put in background.
=====
For background audio playback in windows phone, the Background Audio Agent is required.
The sample provided by Microsoft shows the basics: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978(v=vs.105).aspx
In the sample, the background audio agent has a list of static tracks and when the user taps the skip/prev in the main project, it simply forwards it to the singleton BackgroundAudioPlayer object which in turn uses the event handler in BackgroundAudioAgent project to load the next/prev song.
BUT, what I would think a common usecase is that the main project will have the details of the play list (like a list retrieved from server) and we just need the backgroundaudio agent to forward that request to the main project.
My question is
Is there ANY way to forward the user action from audio agent to the main project so the main project can determine which track to play?
P.S: I cannot use MediaElement (which seemed to work fine in Window Store App and provides background support) because in Windows Phone SDK it has no background support.
EDIT: When the screen is locked, The application itself can be terminated even if the background agent is running, so I guess there no mechanism to forward the request to the app. This would mean, The background agent has to be self sufficient... Which would be a poor design to have to jump through hoops for a seemingly common behavior (Playing audio stored in remote server that requires authentication) .
At this point, I am considering writing all URL specific information to a file and have the background audio agent read that saved file and authenticate with server and create audio tracks. But the handshake to show the current audio information when the application resumes will be complex to say the least.
I hope I am wrong with this and there is actually a easier way than this. Would love to see how others have handled this.

It's possible to show up the "camera access window" more than once?

My app is embed into a page with other related infomation, so I want to, if the user denies the access, to go back some steps (in Flash) and asks again if he can allow access, but once you deny (or allow), Flash don't show this window again.
Today I'm calling a external JS to reload the SWF element, but it's not elegant.
you can open the SecurityPanel in the privacy tab:
Security.showSettings(SecurityPanel.PRIVACY);

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.