The Fastest Android Java Video Trimmer/Cropper Library for Android.
GET REFRENCE CODE AND START WORKING VIDEOTRIMMER --> VIDEOTRIMMERCODE
Only five steps to use the FastestVideoTrimmer:
-
Add repository to your build file.
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
-
Add the dependency.
dependencies { implementation 'com.github.sayyedrizwan:FastestVideoTrimmer:2.0' }
-
Add VideoTrimmer Layout
<com.rizwan.videocropper.interfaces.interfaces.videoCropper xmlns:android="https://schemas.android.com/apk/res/android" xmlns:app="https://schemas.android.com/apk/res-auto" xmlns:tools="https://schemas.android.com/tools" android:id="@+id/croppingactivity" android:layout_width="match_parent" android:layout_height="match_parent"/>
-
implement OnTrimVideoListener, OnCropVideoListener on your working Activity and implement all methods
-
Set actions to work with videotrimmer as per your Requirment
videoCropper.setMaxDuration(204); //3.40 Min //setMaximum duration videoCropper.setOnTrimVideoListener(this); videoCropper.setOnK4LVideoListener(this); videoCropper.setDestinationPath("/storage/emulated/0/Download"); //custom path = /storage/emulated/0/ videoCropper.setVideoURI(Uri.parse(helper.Path)); // Video Path videoCropper.setVideoInformationVisibility(true); // Visible User Information //Defualt is false
License
Copyright 2018-2019 Wallpo Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Founder Rizwan Sayyed