generateVideoThumbnail method

Future<Uint8List?> generateVideoThumbnail(
  1. String path
)

Implementation

Future<Uint8List?> generateVideoThumbnail(String path) async {
  var x = await thumb.VideoThumbnail.thumbnailData(
    video: path,
    imageFormat: thumb.ImageFormat.PNG,
    maxWidth: 128, // specify the width of the thumbnail, let the height auto-scaled to keep the source aspect ratio
    quality: 25,
  );
  return x;
}