start
This function compresses a given list of uris of video files and writes the compressed video file at SharedStorageConfiguration.saveAt directory, or at AppSpecificStorageConfiguration.subFolderName
The source videos should be provided content uris.
Only sharedStorageConfiguration or appSpecificStorageConfiguration must be specified at a time. Passing both will throw an Exception.
Parameters
the application context.
the list of content Uris of the video files.
determines if the output video should be prepared for streaming.
configuration for the path directory where the compressed videos will be saved, and the name of the file
configuration for the path directory where the compressed videos will be saved, the name of the file, and any sub-folders name. The library won't create the subfolder and will throw an exception if the subfolder does not exist.
a compression listener that listens to compression CompressionListener.onStart, CompressionListener.onProgress, CompressionListener.onFailure, CompressionListener.onSuccess and if the compression was CompressionListener.onCancelled
to allow add video compression configuration that could be: Configuration.quality to allow choosing a video quality that can be VideoQuality.LOW, VideoQuality.MEDIUM, VideoQuality.HIGH, and VideoQuality.VERY_HIGH. This defaults to VideoQuality.MEDIUM to determine if the checking for a minimum bitrate threshold before compression is enabled or not. This default to true Configuration.videoBitrateInMbps which is a custom bitrate for the video. You might consider setting Configuration.isMinBitrateCheckEnabled to false if your bitrate is less than 2000000.
Configuration.keepOriginalResolution to keep the original video height and width when compressing. This defaults to
falseConfiguration.videoHeight which is a custom height for the video. Must be specified with Configuration.videoWidth which is a custom width for the video. Must be specified with Configuration.videoHeight