openWriter method
Returns whether the audio of audioSourcePath will be copied; audio
that can't go into an MP4 unchanged is dropped instead of failing.
Implementation
Future<bool> openWriter(
int writerId,
String path,
int width,
int height,
double frameRate,
int? bitRate,
String? audioSourcePath,
VideoCodec codec,
) async {
final pigeonVar_channelName =
'dev.flutter.pigeon.video_frames.VideoWriterHostApi.openWriter$pigeonVar_messageChannelSuffix';
final pigeonVar_channel = BasicMessageChannel<Object?>(
pigeonVar_channelName,
pigeonChannelCodec,
binaryMessenger: pigeonVar_binaryMessenger,
);
final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(<Object?>[
writerId,
path,
width,
height,
frameRate,
bitRate,
audioSourcePath,
codec,
]);
final pigeonVar_replyList = await pigeonVar_sendFuture as List<Object?>?;
final Object? pigeonVar_replyValue = _extractReplyValueOrThrow(
pigeonVar_replyList,
pigeonVar_channelName,
isNullValid: false,
);
return pigeonVar_replyValue! as bool;
}