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