问题
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