闪光灯的摄像头接入请求迅速反应迟钝 [英] Flash webcam access request prompt unresponsive

查看:130
本文介绍了闪光灯的摄像头接入请求迅速反应迟钝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个父SWF名为main.swf中加载一个孩子Registration.swf通过普通装载机类,然后将其添加到舞台上。这孩子有网络摄像头功能捕获图像,但这种情况发生之前,它会提示是否允许用户允许摄像头被打开。

I have a parent swf called Main.swf that loads a child Registration.swf via a regular loader class then adds it to the stage. This child has a webcam function that captures an image but before that happens it prompts the user for permission to allow the webcam to be turned on.

我遇到的问题是,在我的IDE中提示的作品就像一个魅力,并继续通过捕捉图像数据。当我放下失败直播服务器上的文件。

The problem I'm having is that in my IDE the prompt works like a charm and continues through to capturing image data. When I plop the files on a live server it fails.

一个朋友推荐,这是最有可能的一个问题是如何,我请求允许从子,所以不是我打电话的事件给父告诉它提示,仍然没有运气。有同样的问题。

A friend recommended that it's most likely an issue with how I'm requesting permission from the child, so instead I'm calling an event to the parent telling IT to prompt and still no luck. Having the same issues.

注:我瑞士法郎被公布为Player 9和孩子在Player 10中的家长做这种方式,因为每个包都有需要它依赖

Note: The parent .swf was published as Player 9 and the child is in Player 10. I had to do it this way because each package has dependencies that require it.

我不知道什么赫克我可能是做错了。

I'm wondering what the heck I might be doing wrong.

谢谢!

推荐答案

更​​新:我最终解决问题。这正好是一个问题,在注射Flash元素到页面中使用SWFObject。显然,居中对齐包含它抛出了安全策略中的股利。

UPDATE: I ended up resolving the problem. It happened to be an issue with using swfobject in injecting the Flash element into the page. Apparently center aligning the div that contained it throws off the security policy box.

这篇关于闪光灯的摄像头接入请求迅速反应迟钝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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