Skip to main content
Participant
July 1, 2011
Question

Android 2.3 + AIR 2.5 + (CameraUI + recording) + playback = FAIL

  • July 1, 2011
  • 1 reply
  • 1237 views

From the Release notes of AIR 2.5:

"AIR supports only low resolution video recording using CameraUI"

This has the effect that on a Android 2.3 device the AIR application can only record a 176x144 (h.263 + aac) trough the CameraUI class, but this file is not playable by the AIR itself.

We searched for a solution and asked lot of wise people to overcome the default video setting, but as it seems with AIR 2.7 this issue is unresolved, so currently (2011.07.01) the video recording is useless in AIR on Android.

Any ideas for local video (with audio in sync) recording on Android 2.3 is welcome.

This topic has been closed for replies.

1 reply

Participating Frequently
July 2, 2011

Yes, there is a subtle design flaw in CameraUI. As a video is recorded, the video starts to fill up memory. When the device runs low on memory, the OS shuts down background apps -- including the AIR app that launched the camera. Thus when the video is returned to the AIR app, the app is no longer running. This is far more likely to happen with higher resolution videos.

Perhaps AIR could handle this better. Feel free to file a bug/enhancement  at https://bugbase.adobe.com.

dg-gnaAuthor
Participant
July 2, 2011

Our problem is that we had HD videos already recorded with our app without issues, and after some later builds we saw that we lost functionality we had earlier.

We need some sort of solution because we currently have lost a basic functionality of our application.

And because we have the full project from Flash - AIR, not even Flex, we have not the option to migrate the whole project to native...

--

Mit freundlichen Grüßen/ Kind regards / Sincères salutations

DEVELOPERS GLOBAL

Gergely Nagy

CTO Eastern Europe

Developers Global Ltd

1461 First Avenue, #360 New York NY 10075-2201 USA

Mobile: +36 70 620 9833

Office: +1 (347) 433 599

Fax: +1 (347) 438 3214

gna@developersglobal.com

www.developersglobal.com

Developers Global Disclaimer:

The information in this E-Mail and in any files transmitted with it is intended only for the addressee and may contain confidential and/or privileged material. Access to this email by anyone else is unauthorized. If you receive this in error, please contact the sender immediately and delete the material from any computer. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is strictly prohibited. It is your responsibility to scan this communication and any files attached for computer viruses and other defects. Developers Global does not accept liability for any loss or damage (whether direct, indirect, consequential or economic) however caused, and whether by negligence or otherwise, which may result directly or indirectly from this communication or any files attached.

Postal Adress: Developers Global Ltd, 1461 First Avenue, #360 New York NY 10075-2201, USA

Participating Frequently
July 2, 2011

I though we disabled high-resolution video recording before the final, public release of AIR 2.5.

Your best short-term solution might be to use this technique: http://www.jamesward.com/2011/05/11/extending-air-for-android/ to integrate your own native camera code. In the long run, you should be able to use the forthcoming ActionScript native extension feature for an easier deployment/integration.