isFFmpegInstalledWindows function

bool isFFmpegInstalledWindows()

Implementation

bool isFFmpegInstalledWindows() {
  if (!File(path.join(
          path.dirname(Platform.resolvedExecutable), 'avcodec-59.dll'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(
          path.dirname(Platform.resolvedExecutable), 'avformat-59.dll'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(
          path.dirname(Platform.resolvedExecutable), 'avdevice-59.dll'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(
          path.dirname(Platform.resolvedExecutable), 'avfilter-8.dll'))
      .existsSync()) {
    return false;
  }
  if (!File(
          path.join(path.dirname(Platform.resolvedExecutable), 'avutil-57.dll'))
      .existsSync()) {
    return false;
  }
  if (!File(path.join(
          path.dirname(Platform.resolvedExecutable), 'swresample-4.dll'))
      .existsSync()) {
    return false;
  }
  if (!File(
          path.join(path.dirname(Platform.resolvedExecutable), 'swscale-6.dll'))
      .existsSync()) {
    return false;
  }
  return true;
}