Video cropping library with trimming and opportunity to choose different aspect ratio types
For a working implementation, Have a look at the Sample Project - app
- Include the library as local library project.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.VRGsoftUA:VideoCrop:1.0'
}
- In code you need to start Activityfor result like so:
startActivityForResult(VideoCropActivity.createIntent(this, inputPath, outputPath), CROP_REQUEST);
- Then catch result in onActivityResult callback
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if(requestCode == CROP_REQUEST && resultCode == RESULT_OK){
//crop successful
}
}
- 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
- Push the changes you want to implement in the new bundle. Preferably use the desired bundle name as the commit message.
- Create a tag using this commit and push it following this guide: https://linuxhint.com/push-git-tags-to-remote-repository/#:~:text=To%20push%20Git%20tags%20to%20the%20remote%20repository%2C%20first%2C%20open,tag%2Dname%3E%E2%80%9D%20command
- This website: https://jitpack.io/#MinlyInc/VideoCrop can be used to search for and view the different versions of the bundle.