FancyCamera

Download Build Status

Installation

compile 'co.fitcom:fancycamera:0.0.1'

Usage

<co.fitcom.fancycamera.FancyCamera
        app:cameraPosition="back"
        app:quality="max1080p"
        android:id="@+id/cameraView"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        android:orientation="vertical"
/>

Api

Method Default Type Description
start() void Starts the camera preview
stop() void Stop the camera preview
startRecording() void Start recording camera preview.
stopRecording() void Stop recording camera preview.
toggleCamera() void Toggles between front or the back camera.
getDuration() int Get the current recording video duration.
hasCamera() boolean Checks if there are any camera available.
setCameraPosition() void Sets camera position front/back
setCameraOrientation() void Used to force an orientation in the output file

TODO

  • Take photos
  • Enable/Disable flash