Skip to main content
Participant
November 6, 2008
Question

how to check privacy security warnings allow or deny

  • November 6, 2008
  • 3 replies
  • 980 views
hi

can any body tell . how to check that user has allowed or denied webcam access in privacy settings dialog box to the site?


it's urgent please..............................


Thanks
    This topic has been closed for replies.

    3 replies

    Inspiring
    November 5, 2010

    Doubt its relevant anymore as you have probably resolved your issue but to identify whether the user has allowed or denied you look for the muted property, as has already been mentioned, however you can also setup a StatusEvent.STATUS event listener to check for a change in the muted property.

    i.e.

    _mic.addEventListener(StatusEvent.STATUS, onMicStatusChange);

    private function onMicStatusChange(e:StatusEvent):void{

         trace(_mic.muted);

         //if muted == true then they have denied access

    }

    November 7, 2008
    You can't respond to the button clicks on the security dialog... there's nothing in the AS API for that. The best you can do is set up a timer to keep checking the muted property of the camera and microphone classes.
    November 6, 2008
    Through the value of the muted property of the camera or microphone classes.

    var myCam = Camera.getCamera();
    if(myCam.muted){
    // The user has not allowed cam or mic
    }else{
    // The user has allowed cam and mic
    }
    ishshilpaAuthor
    Participant
    November 7, 2008
    hi,
    Thanks for your reply. But i am asking for the box that ask for
    " Privacy Allow local to access your camera and microphone? Allow Deny"
    i want to check weather user has clicked allow or deny?

    Plz help me!!!!!!!!!!!!!!!!

    urgent