Description
Requires API Level 14. The library uses Camera 1 API on API Level 14-20 and Camera2 on 21 and above.
CameraView alternatives and similar packages
Based on the "Media" category.
Alternatively, view CameraView alternatives based on common mentions on social networks and blogs.
-
PhotoFiltersSDK
AndroidPhotoFilters aims to provide fast, powerful and flexible image processing instrument for creating awesome effects on any image media. -
android-ffmpeg-with-rtmp
script(s) to build ffmpeg for android, including support for RTMP (and OpenSSL)
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CameraView or a related project?
README
Deprecated
CameraView is deprecated. No more development will be taking place.
Use Jetpack CameraX instead.
CameraView
This is not an official Google product.
CameraView aims to help Android developers easily integrate Camera features.
Requires API Level 9. The library uses Camera 1 API on API Level 9-20 and Camera2 on 21 and above.
API Level | Camera API | Preview View |
---|---|---|
9-13 | Camera1 | SurfaceView |
14-20 | Camera1 | TextureView |
21-23 | Camera2 | TextureView |
24 | Camera2 | SurfaceView |
Features
- Camera preview by placing it in a layout XML (and calling the start method)
- Configuration by attributes
- Aspect ratio (app:aspectRatio)
- Auto-focus (app:autoFocus)
- Flash (app:flash)
Usage
<com.google.android.cameraview.CameraView
android:id="@+id/camera"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:keepScreenOn="true"
android:adjustViewBounds="true"
app:autoFocus="true"
app:aspectRatio="4:3"
app:facing="back"
app:flash="auto"/>
@Override
protected void onResume() {
super.onResume();
mCameraView.start();
}
@Override
protected void onPause() {
mCameraView.stop();
super.onPause();
}
You can see a complete usage in the demo app.
Contribution
See CONTRIBUTING.md.