enableStatisticsCallback method

void enableStatisticsCallback(
  1. StatisticsCallback newCallback
)

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

Implementation

/*
void enableLogCallback(LogCallback newCallback) {
  try {
    logCallback = newCallback;
  } on PlatformException catch (e) {
    logger.e('Plugin enableLogCallback error: ${e.message}');
  }
}

   */

/// Sets a callback to redirect FFmpeg statistics. [newCallback] is the new
/// statistics callback function, use null to disable a previously defined
/// callback.
void enableStatisticsCallback(StatisticsCallback newCallback) {
  try {
    statisticsCallback = newCallback;
  } on PlatformException catch (e) {
    logger.e('Plugin enableStatisticsCallback error: ${e.message}');
  }
}