executeWithArguments method

Future<int?> executeWithArguments(
  1. List<String> arguments

Executes FFprobe synchronously with commandArguments provided. This method returns when execution completes.

Returns zero on successful execution, 255 on user cancel and non-zero on error.


Future<int?> executeWithArguments(List<String> arguments) async {
  try {
    var result = await _methodChannel.invokeMethod(
        'executeFFprobeWithArguments', {'arguments': arguments});
    return result['rc'];
  } on PlatformException catch (e, stack) {
    logger.e('Plugin executeWithArguments error: ${e.message}');
    return Future.error('executeWithArguments failed.', stack);