executeWithArguments method
Executes FFmpeg synchronously with commandArguments
provided. This
method returns when execution completes.
Returns zero on successful execution, 255 on user cancel and non-zero on error.
Implementation
Future<int?> executeWithArguments(List<String?> arguments) async {
try {
var result = await _methodChannel
.invokeMethod('executeFFmpegWithArguments', {'arguments': arguments});
return result['rc'];
} on PlatformException catch (e, stack) {
logger.e('Plugin executeWithArguments error: ${e.message}');
return Future.error('executeWithArguments failed.', stack);
}
}