registerNewFFmpegPipe method

Future<String?> registerNewFFmpegPipe()

Creates a new FFmpeg pipe and returns its path.

Implementation

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