Skip navigation
ZaphodBeeb
Currently Being Moderated

Android front Camera

May 10, 2011 12:30 AM

Hi

 

I have just started a Flex 4.5 project (video and text chat) utilizing FMS.

 

All works fine appart from I dont seem to be able to use / access the Front camera on my Android device.

 

Anyone got any clues why not?

 

I did read somwhere that air 2.6 has a bug regarding this, but I lost the link.

 

Apologies if this is listed elsewhere.

 

Regards

Paul

 
Replies
  • Chris Campbell
    9,446 posts
    May 4, 2010
    Currently Being Moderated
    May 10, 2011 2:17 PM   in reply to ZaphodBeeb

    Currently, AIR only supports access to the primary camera on an Android device, but stay tuned for additional functionality in a future release.  However, you might be able to get away with using the native camera UI to allow the user to choose which camera is used.  Check out the following blog post:

     

    AIR for Android: Camera and Camera Roll

     

    Hope this helps,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    May 17, 2011 12:01 PM   in reply to ZaphodBeeb

    Has this issue been overcome in the latest AIR release?

     
    |
    Mark as:
  • Chris Campbell
    9,446 posts
    May 4, 2010
    Currently Being Moderated
    May 17, 2011 12:27 PM   in reply to Gregory Lafrance

    With AIR 2.6, the docs state:

    On iOS devices with a both a front- and a rear-facing camera, you can only capture video from one camera at a time. On Android devices, you can only access the rear-facing camera.

     

    Android front facing camera support is planned for a future release, but won't be in the immenent (and current labs) AIR 2.7 release.

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    May 23, 2011 7:11 PM   in reply to Chris Campbell

    I want to tell adobe air team. look example front camera access in java android sdk:

     

                        parameters.set("camera-id", 2); //frontcamera!!
     
                   parameters.setPreviewSize(160,120);
                   camera.setParameters(parameters);
    

     

    that is very simple, why did you air team not fix?????

     

     

    please fix

     

    greetz kelvin

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 7:41 AM   in reply to kkm19

    Are there any updates on adding this to android really soon? It is an incredibly simple feature which is causing a lot of confusion since it does work in ios and not android. and, personally i'm sitting on a project that i can't upload to the market until this is added to air. I'm really looking forward to sharing what I made using air with the community...

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2011 4:39 PM   in reply to ZaphodBeeb

    Please look into this feature.
    Thank you 

     
    |
    Mark as:
  • Chris Campbell
    9,446 posts
    May 4, 2010
    Currently Being Moderated
    Aug 4, 2011 4:50 PM   in reply to Sameer.Khavanekar

    Front facing camera support is a new feature for the upcoming AIR 3.0 release.  If you're interested in joining the prerelease program, you can apply for admission here:

     

    Flash Runtime Testing Opportunity

    Adobe AIR 3 Runtime Beta for Desktops

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2011 9:22 PM   in reply to Chris Campbell

    Thank you for the quick reponse and great products.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2011 12:23 PM   in reply to Chris Campbell

    Finally.  Thank you.

     

    Now would it be too much to ask to allow access to both cameras simultaneously?  This is easily done on the desktop, but so far not possible on mobile devices.  It would be great if the design allows for multiple cameras like in desktop AIR/Flash.  With 3D phones coming out, this would be an important feature.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2011 12:35 PM   in reply to reelportal

    Did you get into the 3.0 AIR prerelease? I filled out the form when the adobe employee posted the link to it about a week ago but still haven't gotten an invite.

     
    |
    Mark as:
  • Chris Campbell
    9,446 posts
    May 4, 2010
    Currently Being Moderated
    Aug 9, 2011 2:18 PM   in reply to BryBam

    Hi BryBam,

    Shoot me an email (ccampbel@adobe.com) with your name, work email, and company name and I'll do what I can to expedite your prerelease invite.

     

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2011 4:33 PM   in reply to ZaphodBeeb

    Hi,

     

    Android Front facing camera support has been added in AIR 3 beta build available here.

    http://labs.adobe.com/technologies/flashplatformruntimes/air3/

     

    Also,  property to detect camera position is also added in beta actionscript reference:- (position)

    http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/ 3/flash/media/Camera.html

     

    Regards,

    Sameer Khavanekar

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 23, 2011 9:29 AM   in reply to Sameer Khavanekar

    You refer to the AIR for android? where?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 23, 2011 10:53 AM   in reply to Fabio Nani

    Hi,

    I didn't get your question properly but I think you are asking about "AIR for Android" download link.

    When you use AIR 3 beta SDK to publish/debug to android device, Flash builder will install AIR runtime on the device and you can start testing.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 23, 2011 12:07 PM   in reply to Sameer Khavanekar

    Hello,

    I am very grateful. I did the tests and you are correct!

    Thank you!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points