Flash 网络摄像头访问请求提示无响应
我有一个名为 Main.swf 的父 swf,它通过常规加载器类加载子 Registration.swf,然后将其添加到舞台。这个孩子有一个网络摄像头功能,可以捕获图像,但在此之前,它会提示用户允许打开网络摄像头。
我遇到的问题是,在我的 IDE 中,提示符就像魅力一样,一直持续到捕获图像数据。当我将文件放到实时服务器上时,它失败了。
一位朋友建议,这很可能是我向孩子请求许可的方式存在问题,因此我向家长调用了一个事件,告诉 IT 进行提示,但仍然没有成功。有同样的问题。
注意:父 .swf 发布为 Player 9,子 .swf 发布为 Player 10。我必须这样做,因为每个包都有需要它的依赖项。
我想知道我到底做错了什么。
谢谢!
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.
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.
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.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新:我最终解决了这个问题。恰好是使用 swfobject 将 Flash 元素注入页面时出现问题。显然,将包含它的 div 居中对齐会抛出安全策略框。
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.