takeSnapshot method

void takeSnapshot(
  1. File file,
  2. int width,
  3. int height
)

Saves snapshot of a video to a desired File location.

Implementation

void takeSnapshot(File file, int width, int height) {
  final filePathCStr = file.path.toNativeUtf8();
  PlayerFFI.takeSnapshot(
    id,
    filePathCStr,
    width,
    height,
  );
  calloc.free(filePathCStr);
}