-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
#### [HIRE US](http://vrgsoft.net/) | ||
# VideoCrop | ||
Video cropping library with trimming and opportunity to choose different aspect ratio types</br></br> | ||
<img src="https://github.com/VRGsoftUA/VideoCrop/blob/master/video.gif" width="270" height="480" /> | ||
# 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 |