From 0d1bb24f9ef4af04a2031e855d31f11e64b1e743 Mon Sep 17 00:00:00 2001 From: Pavlo Nikitin Date: Tue, 21 Aug 2018 15:03:20 +0300 Subject: [PATCH] Update README.md --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 051ce82..7a4fb42 100644 --- a/README.md +++ b/README.md @@ -1 +1,32 @@ +#### [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