enableRedirection static method

Future<void> enableRedirection()

Enables log and statistics redirection.

When redirection is enabled FFmpeg/FFprobe logs are redirected to console and sessions collect log and statistics entries for the executions. It is possible to define global or session specific log/statistics callbacks as well.

Note that redirection is enabled by default. If you do not want to use its functionality please use disableRedirection to disable it.

Implementation

static Future<void> enableRedirection() async {
  try {
    await init();
    return _platform.ffmpegKitConfigEnableRedirection();
  } on PlatformException catch (e, stack) {
    print("Plugin enableRedirection error: ${e.message}");
    return Future.error("enableRedirection failed.", stack);
  }
}