NativePlayer constructor

NativePlayer({
  1. required PlayerConfiguration configuration,
})

NativePlayer

Native based implementation of PlatformPlayer.

Implementation

NativePlayer({required super.configuration})
    : mpv = generated.MPV(DynamicLibrary.open(NativeLibrary.path)) {
  future = _create()
    ..then((_) {
      try {
        configuration.ready?.call();
      } catch (_) {}
    });
}