disableRedirection method
Disables log and statistics redirection.
By default redirection is enabled in constructor. When redirection is enabled FFmpeg logs are printed 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 printed but it is possible to define a statistics callback function. When statistics redirection is disabled they are not printed 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) {
print("Plugin disableRedirection error: ${e.message}");
}
}