Flash: Grant access to webcam programmatically / behind the scenes?

萝らか妹 提交于 2019-12-08 04:16:07

问题


We're building a kiosk app that will have a fairly wide deployment. The app is in Flash running in a browser and requires the use of the webcam. As it stands, each kiosk will show the usual Flash "do you want to allow the use of your camera/microphone" dialog, which I suppose a local admin could click through, choose "remember," etc.

Given that this is a kiosk app, where we have access to the machines themselves (or at least to people who do), is there a way to pre-seed the whitelist so the dialog does not appear?


回答1:


If you run a local application (not Flash) that can read/write the file system, then you can find the settings and change them. They're stored in a local shared object under the macromedia.com domain as well as the domain of the app to allow.

The exact location varies, but on my machine one example is here:

C:\Users\sam\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\#ungrounded.net\settings.sol

This is the settings file for a tutorial here:

http://www.newgrounds.com/portal/view/326194

(the swf is actually hosted on undergrounded.net).

Here's an SOL viewer:

http://www.buraks.com/asv/tools/sve.html

And more information on editing SOL and software here:

http://en.wikipedia.org/wiki/Local_Shared_Object



来源:https://stackoverflow.com/questions/3266939/flash-grant-access-to-webcam-programmatically-behind-the-scenes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!