flutter_video_compress 0.2.0 copy "flutter_video_compress: ^0.2.0" to clipboard
flutter_video_compress: ^0.2.0 copied to clipboard

outdated

Compressed video generates a new path, you can choose to keep the source video or delete it, and provide a function to get a thumbnail of the video file.

flutter_video_compress #

Compressed video generates a new path, you can choose to keep the source video or delete it, and provide a function to get a thumbnail of the video file.

pub version license github stars

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);
86
likes
0
pub points
76%
popularity

Publisher

unverified uploader

Compressed video generates a new path, you can choose to keep the source video or delete it, and provide a function to get a thumbnail of the video file.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_video_compress