initMeeduPlayer function

Future<void> initMeeduPlayer()

Implementation

Future<void> initMeeduPlayer() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (UniversalPlatform.isWindows ||
      UniversalPlatform.isLinux ||
      UniversalPlatform.isMacOS) {
    // For hot reload, `unregisterAll()` needs to be called.
    await hotKeyManager.unregisterAll();
  }

  initVideoPlayerDartVlcIfNeeded();
}