MethodChannelMediaCompressor class

An implementation of MediaCompressorPlatform that uses method channels.

Inheritance

Properties

compressionProgress Stream<double>
Stream of compression progress (0-100)
no setterinherited
eventChannel EventChannel
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelCompression() Future<void>
Cancel ongoing compression task
override
compressImage(String path, int quality) Future<String?>
Compress image with basic quality setting
override
compressImageWithOptions(String path, Map<String, dynamic> options) Future<Map<String, dynamic>?>
Compress image with advanced options
override
compressVideo(String path, String quality) Future<String?>
Compress video with quality preset
override
compressVideoWithOptions(String path, Map<String, dynamic> options) Future<Map<String, dynamic>?>
Compress video with advanced options
override
dispose() → void
Dispose resources
inherited
getPlatformVersion() Future<String?>
Get platform version
override
getSupportedImageFormats() Future<List<String>>
Get supported image formats
override
getSupportedVideoFormats() Future<List<String>>
Get supported video formats
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateProgress(double progress) → void
Update compression progress
inherited

Operators

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