enableStatisticsCallback method

void enableStatisticsCallback(
  1. StatisticsCallback? newCallback
)

Sets a callback to redirect FFmpeg statistics. newCallback is the new statistics callback function, use null to disable a previously defined callback.

Implementation

void enableStatisticsCallback(StatisticsCallback? newCallback) {
  try {
    this.statisticsCallback = newCallback;
  } on PlatformException catch (e) {
    print("Plugin enableStatisticsCallback error: ${e.message}");
  }
}