https://github.com/vrgsoftua/videocrop
Video cropping library
https://github.com/vrgsoftua/videocrop
android crop custom trim video
Last synced: 3 months ago
JSON representation
Video cropping library
- Host: GitHub
- URL: https://github.com/vrgsoftua/videocrop
- Owner: VRGsoftUA
- Created: 2018-08-21T11:48:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-11T18:35:15.000Z (almost 7 years ago)
- Last Synced: 2025-06-09T14:02:37.903Z (about 1 year ago)
- Topics: android, crop, custom, trim, video
- Language: Java
- Homepage: http://vrgsoft.net/
- Size: 35.8 MB
- Stars: 106
- Watchers: 4
- Forks: 39
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### [HIRE US](http://vrgsoft.net/)
# VideoCrop
Video cropping library with trimming and opportunity to choose different aspect ratio types
# Usage
*For a working implementation, Have a look at the Sample Project - app*
1. Include the library as local library project.
```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.VRGsoftUA:VideoCrop:1.0'
}
```
2. In code you need to start Activityfor result like so:
```
startActivityForResult(VideoCropActivity.createIntent(this, inputPath, outputPath), CROP_REQUEST);
```
3. Then catch result in onActivityResult callback
```@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if(requestCode == CROP_REQUEST && resultCode == RESULT_OK){
//crop successful
}
}
```
#### Contributing
* Contributions are always welcome
* If you want a feature and can code, feel free to fork and add the change yourself and make a pull request