disableRedirection method
Disables log and statistics redirection.
By default redirection is enabled in constructor. When redirection is enabled FFmpeg logs are p rinted to console and can be routed further to a callback function. By disabling redirection, logs are redirected to stderr.
Statistics redirection behaviour is similar. It is enabled by default. They are not p rinted but it is possible to define a statistics callback function. When statistics redirection is disabled they are not p rinted anywhere and only saved as lastReceivedStatistics data which can be polled with getLastReceivedStatistics() method.
Implementation
Future<void> disableRedirection() async {
try {
await _methodChannel.invokeMethod('disableRedirection');
} on PlatformException catch (e) {
logger.e('Plugin disableRedirection error: ${e.message}');
}
}