Chrome Notification/Permission Bar - Detect if visible

心不动则不痛 提交于 2019-12-23 09:34:39

问题


Chrome displays the following notification bar when flash requests access to the camera or microphone...

Is there any JavaScript or AS3 way to be detect if this is/isn't visible?


回答1:


I know it's been a long time since you asked, but we finally found a workaround that I would like to share, the ActionScript Camera has a public property called currentFPS which while the permission is pending will be constant and set to 0(zero). We use that property to decide either or not we should display a user notification.




回答2:


Detecting the security bar would be a security breach. I doesn't seem to me that this would be implemented for use in any language.

i am 100% certain this can not be done in javascript as well as AS3



来源:https://stackoverflow.com/questions/17613571/chrome-notification-permission-bar-detect-if-visible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!