VideoWriterHostApi class

Encoding, on its own serial background queue.

Constructors

VideoWriterHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
Constructor for VideoWriterHostApi. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode → int
The hash code for this object.
no setterinherited
pigeonVar_binaryMessenger → BinaryMessenger?
final
pigeonVar_messageChannelSuffix → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addFrame(int writerId, Uint8List rgba, int ptsUs) → Future<void>
cancelWriter(int writerId) → Future<void>
Stop and delete the partial file.
finishWriter(int writerId) → Future<void>
Flush, copy the audio track (if any) and close the file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openWriter(int writerId, String path, int width, int height, double frameRate, int? bitRate, String? audioSourcePath, VideoCodec codec) → Future<bool>
Returns whether the audio of audioSourcePath will be copied; audio that can't go into an MP4 unchanged is dropped instead of failing.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

pigeonChannelCodec → const MessageCodec<Object?>