闪光灯的摄像头接入请求迅速反应迟钝闪光灯、迟钝、摄像头、迅速

由网友(Lonely(孤独))分享简介:我有一个父SWF名为main.swf中加载一个孩子Registration.swf通过普通装载机类,然后将其添加到舞台上。这孩子有网络摄像头功能捕获图像,但这种情况发生之前,它会提示是否允许用户允许摄像头被打开。I have a parent swf called Main.swf that loads a chil...

我有一个父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.

阅读全文

相关推荐

最新文章