Flash:授权访问摄像头编程/后台? [英] Flash: Grant access to webcam programmatically / behind the scenes?

查看:267
本文介绍了Flash:授权访问摄像头编程/后台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建一个将会有相当广泛部署的自助服务终端应用程序。该应用程序在Flash中运行在浏览器中,并需要使用摄像头。就像现在这样,每个信息亭都会显示通常的Flash你想允许使用你的摄像头/麦克风对话框,我想本地管理员可以点击,选择记住等。
$ b

鉴于这是一个自助服务终端应用程序,我们可以自己访问这些机器(或者至少可以访问这些机器的人),有没有一种方法可以预先给白名单加上种子,这样对话框就不会如果你运行一个本地应用程序(而不是Flash),可以读/写文件系统,那么你可以找到设置并更改它们。它们存储在 macromedia.com 域下的本地共享对象以及允许的应用程序域中。



确切的位置有所不同,但在我的机器上有一个例子:

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

这是本教程的设置文件:

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



这里是一个SOL查看器:



(swf实际上是在undergrounded.net上托管的) http://www.buraks.com/asv/tools/sve.html

更多关于编辑SOL和软件的信息在这里:

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


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?

解决方案

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

这篇关于Flash:授权访问摄像头编程/后台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆