MediaCompressorPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • MediaCompressorPlatform
Implementers

Constructors

MediaCompressorPlatform()
Constructs a MediaCompressorPlatform.

Properties

compressionProgress Stream<double>
Stream of compression progress (0-100)
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelCompression() Future<void>
Cancel ongoing compression task
compressImage(String path, int quality) Future<String?>
Compress image with basic quality setting
compressImageWithOptions(String path, Map<String, dynamic> options) Future<Map<String, dynamic>?>
Compress image with advanced options
compressVideo(String path, String quality) Future<String?>
Compress video with quality preset
compressVideoWithOptions(String path, Map<String, dynamic> options) Future<Map<String, dynamic>?>
Compress video with advanced options
dispose() → void
Dispose resources
getPlatformVersion() Future<String?>
Get platform version
getSupportedImageFormats() Future<List<String>>
Get supported image formats
getSupportedVideoFormats() Future<List<String>>
Get supported video formats
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

Operators

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

Static Properties

instance MediaCompressorPlatform
The default instance of MediaCompressorPlatform to use.
getter/setter pair