5 Replies Latest reply on Jun 17, 2010 10:37 PM by kevinchow

    getCamera() probelem on AIR 2.0

    sudotklab

      I tested my  AIR 2.0 application which uses a camera installed on the system.

       

      It worked fine with AIR 1.5 but not in AIR 2.0 any more.

       

      It seems that AIR 2.0 cannot recognize when getCamera() returns to null.

      In other word, the applicatin cannot tell if the camera is/has been used by another application, or no camera no cameras installed on the system.

       

      The reference says:

      "If getCamera() returns null, either the camera is in use by another        application, or there are no cameras installed on the system."

       

      Anyway, do you anyone knows how to workaround this problem?

       

      Thanks.

        • 1. Re: getCamera() probelem on AIR 2.0
          kevinchow

          Hi Sudotklab,

           

          Thanks for bringing this to our attention. Would you tell us which OS you are running on? Do you use built-in webcam or USB connected one if you are on laptop or netbook?

           

          We are trying to reproduce this issue on our side. Thanks,

           

          AIR QE,

          Kevin

          • 2. Re: getCamera() probelem on AIR 2.0
            sudotklab Level 1

            Hi Kevin,

             

            Thanks for your reply.
            I appreciate you are taking this issue seriously.

             

            Anyway, actually I tested both on the netbook with built-in webcam and desktop with USB connected one.

             

            Please let me know if you fix this problem.

             

            Thanks again.

             

            Masato

            • 3. Re: getCamera() probelem on AIR 2.0
              kevinchow Level 1

              Hi Masato,

               

              I assume that you are running WinXP or Win 7. Am I right?

               

              We have filed the bug #2644621 internally. To clarify about the behavior, is it exactly what you mean?

               

              PROBLEM: getCamera() Api does not return null when camera is already in use.

               

              METHOD:
              1. Start an application which uses the camera.
              2. Write and execute an AIR app which calls the getCamera() Api.

               

              RESULT:
              getCamera() does not return null. Instead it returns the camera object, thought the camera cannot be used by the AIR app as it is already in use by another application.

               

              EXPECTED:
              getCamera() api should return null.

               

               

              I spent some time and could reproduce this issue on AIR 2. It's also reproducible with AIR 1.5 on WinXP and Win7. Does it return null on yours? Thanks,

               

              Kevin

              • 4. Re: getCamera() probelem on AIR 2.0
                sudotklab Level 1

                Hi Kevin,

                 

                Yes, you are right about that. But please include Win Vista, too.

                I got the same result from all those three versions of Win platform.

                 


                Also the issue I've previously posted was exactly what you described here.

                 

                I actually found out that the issue occurred both with AIR 1.5 and 2.0

                 

                Thanks.

                 

                Masato

                • 5. Re: getCamera() probelem on AIR 2.0
                  kevinchow Level 1

                  Hi Masato,

                   

                  Very nice. Thanks for all info and confirmation.

                   

                  Kevin