Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

IOS Front Facing Camera Possible?

New Here ,
Apr 07, 2013 Apr 07, 2013

Hi,

Can anyone confirm if it is actually possible to use the front facing camera on an I Phone from a Flash created App?

I am using:

var cam:Camera = Camera.getCamera();

And it wil display the camera on the screen, but rotated 90 degrees and only the main camera.

Many thanks for your time.

TOPICS
ActionScript
574
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 08, 2013 Apr 08, 2013

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

It's asking for a "name" of the camera, which can be an index. It defaults to index 0 which is the main (back) camera. Set it to "1" and it will use the front camera.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 13, 2013 Apr 13, 2013

Thanks for the link and the tip. Worked perfectly.

And if anyone else want to use the fromt facing camera you may need to rotate the video.

video.rotation = 90;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 16, 2013 Apr 16, 2013
LATEST

You're welcome and if you're all set please mark helpful/correct so we can attend unanswered questions. Good luck!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines