1 Reply Latest reply on Mar 14, 2013 6:24 PM by ThruView

    Blurry image in Android front camera

    Kobydo2 Level 1

      Hey All,

      I've been beating myself with this for a while, I need some help.

      I am using the device's front camera. In iOS it's working great. In Android - I get this fuzzy image that shows me the front camera 3 times with black and white stripes (See image).

      IMG_2256.JPG

      Here is my camera / video display related code:

       

      <s:VideoDisplay id="vid" x="10" y="15"/>

       

       

      private function getFrontCamera():Camera

      {

         if (Camera.isSupported == false)

                                              {

                                                        return null;

                                              }

                                              var numCameras:int = Camera.names.length;

       

                                              if (numCameras == 0)

                                                        return null;

                                              if (numCameras == 1)

                                                        return Camera.getCamera("0");

                                              if (numCameras == 2)

                                                        return Camera.getCamera("1");

                                              return Camera.getCamera();

      }

       

      var LocalVideo:Video = new Video(vid.width, vid.height);

      LocalVideo.attachCamera(cam);

      vid.addChild(LocalVideo);

       

      Note: This does not happen in Motorola for example, on other Andoird machines - it does.