Chrome Notification / Permission Bar - detection if visible

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

Chrome notification bar

Is there a JavaScript or AS3 way to detect if this is / is not visible?

+6
source share
2 answers

I know that a lot of time has passed since you asked, but we finally found a workaround that I would like to provide, the ActionScript camera has a public property called currentFPS , which, when waiting for permission, will be constant and set to 0 (zero). We use this property to decide whether or not we should display a notification to the user.

+1
source

Security bar detection will be a security breach. It does not seem to me that this will be implemented for use in any language.

I am 100% sure that this cannot be done in javascript as well as in AS3

-1
source

Source: https://habr.com/ru/post/949308/


All Articles