VideoCompressionOptions class
Constructors
- VideoCompressionOptions({VideoCompressionQuality? quality = VideoCompressionQuality.p720, int? customBitrate, int? customWidth, int? customHeight, String outputFormat = 'mp4', bool deleteOriginalFile = false, dynamic onProgress(double progress)?})
-
const
Properties
- customBitrate → int?
-
final
- customHeight → int?
-
final
- customWidth → int?
-
final
- deleteOriginalFile → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onProgress → dynamic Function(double progress)?
-
final
- outputFormat → String
-
final
- quality → VideoCompressionQuality?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetBitrate → int
-
no setter
Methods
-
getTargetHeight(
int originalHeight) → int - Get target height based on original dimensions and quality setting
-
getTargetWidth(
int originalWidth, int originalHeight) → int - Get target width based on original dimensions and quality setting
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
{int? originalWidth, int? originalHeight}) → Map< String, dynamic> - Convert to map with calculated target dimensions
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited