FlutterSoundFFmpegConfig constructor

FlutterSoundFFmpegConfig(
  1. Logger aLogger
)

Implementation

FlutterSoundFFmpegConfig(Logger aLogger) {
  //logCallback = null;
  logger = aLogger;
  statisticsCallback = null;

  logger.d('Loading flutter-ffmpeg.');

  _eventChannel.receiveBroadcastStream().listen(_onEvent, onError: _onError);

  enableLogs();
  enableStatistics();
  enableRedirection();

  getPlatform().then((name) => logger.d('Loaded flutter-ffmpeg-$name.'));
}