LightCompressor class
Light compressor that perform video compression and cancel compression
Constructors
- LightCompressor()
-
Singleton instance of LightCompressor
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onProgressUpdated
→ Stream<
double> -
Fires whenever the uploading progress changes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelCompression(
) → Future< Map< String, dynamic> ?> - Call this function to cancel video compression process.
-
compressVideo(
{required String path, required VideoQuality videoQuality, required AndroidConfig android, required IOSConfig ios, required Video video, bool? disableAudio = false, bool isMinBitrateCheckEnabled = true}) → Future< Result> -
This function compresses a given
path
video file and writes the compressed video file in app-specific storage or external storage in android and in gallery in ios. -
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