Skip to content
Camera & Microphone OpenFL native extension
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dependencies/android
ndll
project
test_project
CameraMic.hx
README.md
haxelib.json
include.xml

README.md

CameraMic

Camera & Microphone OpenFL native extension (for Android & iOS)

Features:

  • Native camera view to take a photo.
  • Native microphone access to record audio.
  • Recorded audio playback.

There is not any error handling yet. I know this is no a perfect way to do it, but at least it works for me! It would be great you help me doing it better.

Installation

Install the repository code using haxelib git:

haxelib git CameraMic https://github.com/josuigoa/CameraMic.git

Android

Android version works fine hacking GameActivity for the camera (the GameActivity file is in the test project). When OpenFL 1.1 is released, I hope I will do it cleaner. using the new OpenFL 1.1 Extension class

iOS

In the iOS version, the camera view pushes and takes the photo. Otherwise it seems it records audio correctly, but I can´t play it back, so I can't know if it is ok.

TODO

  • Move the images from the camera roll instead of copying

License

This software is released under the MIT License

You can’t perform that action at this time.