setLevel method

dynamic setLevel(
  1. FijkLogLevel level
)

Set global whole log level

Call this method on Android platform will load natvie shared libraries. If you care about app boot performance, you should call this method as late as possiable. Call this method before the first time you consturctor new FijkPlayer

Implementation

static setLevel(final FijkLogLevel level) {
  assert(level != null);
  _level = level;
  log(FijkLogLevel.Silent, "set log level $level", "fijk");
  FijkPlugin._setLogLevel(level.level).then((_) {
    log(FijkLogLevel.Silent, "native log level ${level.level}", "fijk");
  });
}