Select Page

Flash “Allow” webcam button not working – Firefox

I recently came across this problem with a small AR project I was working on. Sometimes the webcam would work, but other times the SWF would seem to freeze when the Webcam Flash Player Settings window would come up. I could still “tab” around the settings window but I couldn’t select the “Allow” button to enable my webcam. This was pretty frustrating until I came across this helpful post on stackoverflow:

It seems that it is a bug within the Flash Player Settings that occurs when the window width isn’t a whole pixel, and the CSS for the window is set to margin auto. With a bit of javascript trickery you can make sure that you won’t have this problem again.

Remove padding around 100% width/height Flash content

Some browsers put in padding around flash content that is scaled to fit 100% height and width. This is a quick CSS / HTML fix to make your full-screen flash movie fit the full height and width of the browser.
Just put this in the top of your HTML inside your CSS declaration

* {margin:0px;padding:0px;}