Flash 和 Firefox:无法单击“允许”在隐私面板上
我使用 Flex Builder 4 创建了一个相当简单的 Flex 应用程序,它连接到用户 PC 上的网络摄像头。为此,Flash 向用户展示了臭名昭著的隐私警告。
现在的问题是用户无法单击面板,因为它似乎对任何用户交互都没有响应。
更多详细信息:
- Mac/OSX 上的 Firefox 3.6.12、Snow Leopard。
- Adobe Flash Plugin 10.1.85.3 / 10.1 r85
- Flex 应用程序在自己的窗口/选项卡中工作正常,但一旦带有 Flex 应用程序的 html 页面嵌入到另一个页面的 iframe 中,问题就会出现。
- 如果我在连接相机之前人为地放置了一个警报框,用户就可以与 Flex 应用程序交互,但一旦显示“隐私”面板,Flex 应用程序就会停止交互。
- 该应用程序在 Chrome 和 Safari 下运行良好,但我还没有在 Windows 下尝试过。
- 我了解到 CSS 定位存在问题,因此我删除了影响 Flex 应用程序的所有 CSS 样式。
在我改变策略并摆脱 iframe 之前(这将花费我相当多的精力),我很高兴知道其他人是否遇到过同样的问题以及是否有解决方法。
谢谢。
I've created a rather simple Flex application using Flex Builder 4, which connects to a webcam on the user's PC. To do so, Flash is presenting the user with the infamous privacy warning.
Now, the problem is that user can't click on the panel, as it seems unresponsive to any user interaction.
Some more details:
- Firefox 3.6.12 on Mac/OSX, Snow Leopard.
- Adobe Flash Plugin 10.1.85.3 / 10.1 r85
- The Flex app is working fine in its own window/tab but the problem shows up as soon as the html page with the Flex app is embedded into the iframe of another page.
- If I artificially put an Alert box before connecting the camera, the user is able to interact with the Flex application but as soon as the Privacy panel is shown, the Flex app stops interacting.
- The app works fine under Chrome and Safari but I have not tried this under Windows.
- I've read that there are problems with CSS positioning so I removed any CSS style impacting the Flex app.
Before I change my strategy and get rid of the iframe (which will cost me quite some effort) I'd be happy to know whether others have experienced the same problem and if there are workarounds.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
几周以来我遇到了同样的问题。我发现可能是什么问题。和css对齐有关系。尝试从 div flash 中删除 text-align:center; ,它会再次工作。不知何故,安全面板上的活动区域不会随着显示图像而移动......
I had the same issue for weeks now. I found what may be the problem. It has something to do with the css alignment. try to remove the text-align:center; from the div flash is in and it will work again. Somehow the active areas from the security panel don´t shift with the display image…
在我的应用程序中,这个问题显然是由包含具有 css
margin: 0 auto
的 flash 的元素引起的。这导致 Flash 对象的左边缘有时被报告为小数,例如$('.flash').position().left --> 450.5 像素。只要它不是整数,安全面板就无法对点击做出反应。
https://bugs.adobe.com/jira/browse/FP-4183 中描述的修复 并链接到 Christiano 几乎 的作品。然而,每当浏览器大小调整得太小以致左边距消失时,它都会失败。
以下是我解决问题的方法:
设置好闪光灯后,只需调用
window.resize()
即可。In my application, this problem is apparently caused by an element containing the flash having the css
margin: 0 auto
. This leads to the left edge of the flash object sometimes being reported as a decimal, e.g.$('.flash').position().left --> 450.5px
. Whenever it's not a whole number, the security panel failed to react to clicks.The fix described in https://bugs.adobe.com/jira/browse/FP-4183 and linked to by Christiano almost works. However, it failed whenever the browser was resized to be so small that the left margin disappeared.
Here's what fixed the issue for me:
Then just call
window.resize()
once your flash has been set up.