We have been sitting on this for a couple of years, unsure of whether it’s worth making another Camera ANE release. But with more than 300 downloads of our Camera Tutorial for iOS we thought you readers spoke loud and clear.
While the Camera Tutorial shows you step-by-step how to connect to the iOS camera, capture frames from it and wrap all of this in an ANE, this new release has a lot more functionality and supports Android too. Below is the list of features…
What’s in the Camera Driver ANE
- Connection to the native camera for capturing frames from it
- Orientation control
- Camera settings:
- resolution
- frame rate
- focus
- exposure
- white balance
- point of interest, so you can choose a point for exposure, focus and white balance by tapping on the screen
- flash control
- switching between cameras
- Geometry filters for image manipulation
- rotation
- translation
- cropping
- iOS and Android support
Note: not all features are supported on Android yet. Check out the API reference and let us know what else you want included.
Want it?
Download the DiaDraw Camera Driver ANE here for iOS, Android or for iOS + Android.
Want the source code?
Let us know in the comments below. Our initial plans don’t include releasing of the source code, but we’d rather let you have a vote on that. If a big enough number of people want it, why not?
Hi,i ‘m building an application with live rtmp stream publishing function . As you know ,the AS3 camera class on mobile is !@##$%$% .
please tell me if i can use AS3 netstream.attach(camera) ,and also benifit from your ane?
Hi Raymond,
Apologies for the late reply!
Attaching the AS3 camera to a netstream will lock it for access from the native side.
If you want to use the ANE, you can attach video frames to it by hand instead as metadata, for example:
m_netStream.send( "@setDataFrame", "onMetaData", metaData );
where metaData is the ByteArray with the frame that the ANE sends to your app.
This will require an implementation of onMetaData at the receiving end where you play the video, which will recognise the metaData as a video frame and display it.
Hope that helps,
Radoslava
Hello,
I’m sure you know about that wonderful “VideoTexture” feature in iOS AIR, right. Do you think your ANE can be tweaked somehow to send the date there directly, or the only chance to use it with Context3D would be to upload byte array manually every frame?
What versions of the iOS and air SDK are supported by this ane?
Hi Ryu,
The Camera Driver ANE was tested and works fine with the latest AIR SDK 24 and iOS 10.2.1.
What SDK version and iOS devices do you need to support in your project?
Cheers,
Hristo