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
Solved! Go to Solution.
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)
Views
Replies
Total Likes
+1 interested
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
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)
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Great, glad it works for you!
Views
Likes
Replies
Views
Likes
Replies