ffmpegExecute static method

Future<void> ffmpegExecute(
  1. FFmpegSession ffmpegSession
)

Synchronously executes the FFmpeg session provided.

Implementation

static Future<void> ffmpegExecute(FFmpegSession ffmpegSession) async {
  try {
    await init();
    return _platform
        .ffmpegKitConfigFFmpegExecute(ffmpegSession.getSessionId());
  } on PlatformException catch (e, stack) {
    print("Plugin ffmpegExecute error: ${e.message}");
    return Future.error("ffmpegExecute failed.", stack);
  }
}