VideoThumbnail class

Constructors

VideoThumbnail()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

thumbnailData({required String video, Map<String, String>? headers, ImageFormat imageFormat = ImageFormat.PNG, int maxHeight = 0, int maxWidth = 0, int timeMs = 0, int quality = 10}) Future<Uint8List?>
Generates a thumbnail image data in memory as UInt8List, it can be easily used by Image.memory(...). The video can be a local video file, or an URL repreents iOS or Android native supported video format. Specify the maximum height or width for the thumbnail or 0 for same resolution as the original video. The lower quality value creates lower quality of the thumbnail image, but it gets ignored for PNG format.
thumbnailFile({required String video, Map<String, String>? headers, String? thumbnailPath, ImageFormat imageFormat = ImageFormat.PNG, int maxHeight = 0, int maxWidth = 0, int timeMs = 0, int quality = 10}) Future<String?>
Generates a thumbnail file under specified thumbnail folder or given full path and name which matches expected ext. The video can be a local video file, or an URL repreents iOS or Android native supported video format. If the thumbnailPath is ommited or null, a thumbnail image file will be created under the same folder as the video file. Specify the maximum height or width for the thumbnail or 0 for same resolution as the original video. The lower quality value creates lower quality of the thumbnail image, but it gets ignored for PNG format.