Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.skynet2017:cameraview:2.1.2'
}
dependencies {
implementation("com.github.skynet2017:cameraview:2.1.2")
}
<dependency>
<groupId>com.github.skynet2017</groupId>
<artifactId>cameraview</artifactId>
<version>2.1.2</version>
</dependency>
libraryDependencies += "com.github.skynet2017" % "cameraview" % "2.1.2"
:dependencies [[com.github.skynet2017/cameraview "2.1.2"]]
This is a new major version (v2) of the library. It includes breaking changes, signature changes and new functionality. Keep reading if interested, or head to the legacy-v1 branch to read v1 documentation and info.
The v2 version is still in beta and its API surface might still change. Functions might be renamed, options might be removed (though they probably won't), signatures might change. If this is a problem, please wait for the final release and keep using v1.
<p align="center"> <img src="docs/static/icon.png" vspace="10" width="250" height="250"> </p>CameraView is a well documented, high-level library that makes capturing pictures and videos easy, addressing most of the common issues and needs, and still leaving you with flexibility where needed.
compile 'com.otaliastudios:cameraview:2.0.0-beta02'
takePicture
and takeVideo
takePictureSnapshot
and takeVideoSnapshot
CameraView
of any sizeExifInterface
Read the official website for setup instructions and documentation.
If you like the project, use it with profit, or simply want to thank back, please consider donating to the project now! You can either make a one time donation or become a sponsor, in which case your company logo will immediately show up here.
Thank you for any contribution - it is a nice reward for what has been done until now, and a motivation boost to push the library forward.
Thanks to all backers! Become a backer.
<a href="https://opencollective.com/cameraview#backers" target="_blank"><img src="https://opencollective.com/cameraview/backers.svg?width=890"></a>
Thanks to sponsors! Become a sponsor and have your logo here.
<a href="https://opencollective.com/cameraview/sponsor/0/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/0/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/1/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/1/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/2/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/2/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/3/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/3/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/4/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/4/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/5/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/5/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/6/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/6/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/7/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/7/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/8/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/8/avatar.svg"></a> <a href="https://opencollective.com/cameraview/sponsor/9/website" target="_blank"><img src="https://opencollective.com/cameraview/sponsor/9/avatar.svg"></a>