Compress extension
Methods
-
cancelCompression(
) → Future< void> -
Available on IVideoCompress, provided by the Compress extension
stop compressing the file that is currently being compressed. If there is no compression process, nothing will happen. -
compressVideo(
String path, {VideoQuality quality = VideoQuality.DefaultQuality, bool deleteOrigin = false, int? startTime, int? duration, bool? includeAudio, int frameRate = 30}) → Future< MediaInfo?> -
Available on IVideoCompress, provided by the Compress extension
compress video frompath
compress video frompath
return Future<MediaInfo> -
deleteAllCache(
) → Future< bool?> -
Available on IVideoCompress, provided by the Compress extension
delete the cache folder, please do not put other things in the folder of this plugin, it will be cleared -
dispose(
) → void -
Available on IVideoCompress, provided by the Compress extension
-
getByteThumbnail(
String path, {int quality = 100, int position = -1}) → Future< Uint8List?> -
Available on IVideoCompress, provided by the Compress extension
getByteThumbnail return Future<Uint8List>, quality can be controlled byquality
from 1 to 100, select the position unit in the video byposition
is milliseconds -
getFileThumbnail(
String path, {int quality = 100, int position = -1}) → Future< File> -
Available on IVideoCompress, provided by the Compress extension
getFileThumbnail return Future<File> quality can be controlled byquality
from 1 to 100, select the position unit in the video byposition
is milliseconds -
getMediaInfo(
String path) → Future< MediaInfo> -
Available on IVideoCompress, provided by the Compress extension
get media information frompath
-
setLogLevel(
int logLevel) → Future< void> -
Available on IVideoCompress, provided by the Compress extension