flutter_video_compress 0.1.8 flutter_video_compress: ^0.1.8 copied to clipboard
A flutter plugin, compress video in a new path, delete or not. get media thumbnail by unit8list, you can select quality.
flutter_video_compress #
A flutter plugin, compress video in a new path, delete or not. get media thumbnail by unit8list, you can select quality.
Methods #
Function | Parameter | Description | Return |
---|---|---|---|
getThumbnail | String path , int quality |
Return a thumbnail of the video from the input file uri |
Uint8List bitmap |
compressVideo | String path , bool deleteOrigin |
Compress the video file and return a new path |
String path |
Usage #
Creating instance.
FlutterVideoCompress _flutterVideoCompress = FlutterVideoCompress();
Get a video file thumbnail
final Uint8List _image = await _flutterVideoCompress
.getThumbnail(path: file.path, quality: 50)
Compress a Video
final String newPath = await _flutterVideoCompress
.compressVideo(path: file.path, deleteOrigin: true);
print(newPath);