Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
Adobe Summit 2023 | Complete list of AEM Sessions & Labs
SOLVED

Access to the front-facing camera

Avatar

Level 3

Hey guys:

I've downloaded AIR 3.0 and have been anxiously awaiting the front facing camera!  Any news on when LCCS will adopt?  Or is there a way I can replace the default getCamera() functionality of the publisher?  I'm excited after coming back from MAX.

Keep up the good work,

-Eric

1 Accepted Solution

Avatar

Correct answer by
Level 3

Well, I have not yet had a chance to test it, but with AIR 3, you should be

able to use WebCamPublisher.CameraNameIndex to set the camera to the

front-facing one.

You should be able to do something like:

function setupPublisher(publisher:WebcamPublisher):void {

var camera:Camera;

var cameraCount:uint = Camera.names.length;

for ( var i:uint = 0; i < cameraCount; ++i )

{

camera = Camera.getCamera( String(i) );

if ( camera.position == CameraPosition.FRONT )

publisher.cameraNameIndex = String(i);

}

}

(with apologies for the formatting)

View solution in original post

0 Replies

Avatar

Level 1

Video chat is a major value proposition of LCCS. Mobile has become a strategic initiative for Adobe as witnessed by AIR Mobile.  LCCS with mobile endpoints should be a winner for Adobe, developers, and customers, but no front facing camera makes it a non-starter.  I have to believe this will be fixed.  Can anybody confirm?

Avatar

Correct answer by
Level 3

Well, I have not yet had a chance to test it, but with AIR 3, you should be

able to use WebCamPublisher.CameraNameIndex to set the camera to the

front-facing one.

You should be able to do something like:

function setupPublisher(publisher:WebcamPublisher):void {

var camera:Camera;

var cameraCount:uint = Camera.names.length;

for ( var i:uint = 0; i < cameraCount; ++i )

{

camera = Camera.getCamera( String(i) );

if ( camera.position == CameraPosition.FRONT )

publisher.cameraNameIndex = String(i);

}

}

(with apologies for the formatting)

Avatar

Level 3

Thanks so much sasha.  My issue was trying to set the camera directly!  The cameraNameIndex was the silver bullet.  Now that I have the core functionality of grabbing the front facing camera to publish, it's time to build the rest.  Wish me luck.