{"id":11,"date":"2010-11-30T16:47:04","date_gmt":"2010-11-30T16:47:04","guid":{"rendered":"http:\/\/www.albertosarullo.com\/blog\/?p=11"},"modified":"2011-04-01T12:39:26","modified_gmt":"2011-04-01T12:39:26","slug":"facebook-flash-apps-and-firefox-bug-and-workaround","status":"publish","type":"post","link":"http:\/\/www.albertosarullo.com\/blog\/facebook-flash-apps-and-firefox-bug-and-workaround","title":{"rendered":"Facebook Flash Apps and Firefox: bug and workaround"},"content":{"rendered":"<p>If you develop a flash iframe facebook application that records images \/ video from the user camera, you have serious problem on Firefox on mac OSX: you are unable to interact with the flash settings dialog box.<br \/>\n<!--more--><br \/>\nThe bug is on the css &#8220;margin:0 auto;&#8221;; if you change the property, the user is able to interact with the flash dialog box and the app is able to record photos and video from the webcam.<\/p>\n<h2>Javascript fix (Query)<\/h2>\n<pre name=\"code\" class=\"javascript\">\r\ntry {\r\n\tif ($.browser.mozilla) {\r\n\t\t$(window).resize(function () {\r\n\t\t\t$(\"#yourFlash\").css('margin-left', window.outerWidth % 2 ? '0' : '0.5px')\r\n\t\t}).resize();\r\n\t}\r\n} catch(ex) { }\r\n<\/pre>\n<h2>Css fix<\/h2>\n<pre name=\"code\" class=\"javascript\">\r\n#flashmain { magin-left: 0.5px }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you develop a flash iframe facebook application that records images \/ video from the user camera, you have serious problem on Firefox on mac OSX: you are unable to interact with the flash settings dialog box.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20],"tags":[21,24,51,22,52,23,25],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-facebook","category-flash","tag-app","tag-camera","tag-facebook","tag-firefox","tag-flash","tag-osx","tag-webcam"],"_links":{"self":[{"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}