ensureInitialized static method

void ensureInitialized({
  1. String? libmpv,
})

package:media_kit

A complete video & audio library for Flutter & Dart.

Implementation

static void ensureInitialized({String? libmpv}) {
  if (UniversalPlatform.isWindows) {
    nativeEnsureInitialized(libmpv: libmpv);
  } else if (UniversalPlatform.isLinux) {
    nativeEnsureInitialized(libmpv: libmpv);
  } else if (UniversalPlatform.isMacOS) {
    nativeEnsureInitialized(libmpv: libmpv);
  } else if (UniversalPlatform.isIOS) {
    nativeEnsureInitialized(libmpv: libmpv);
  } else if (UniversalPlatform.isAndroid) {
    nativeEnsureInitialized(libmpv: libmpv);
  } else if (UniversalPlatform.isWeb) {
    webEnsureInitialized(libmpv: libmpv);
  }
}