SnapshotConfig

Used to configure snapshot functionality.

public class SnapshotConfig {
  public String filePath = null;
  public Constants.VideoModulePosition position = Constants.VideoModulePosition.VIDEO_MODULE_POSITION_PRE_ENCODER;
}

Properties

filePath
Local path of the snapshot file (including file extension). For example: Android: /storage/emulated/0/Android/data/<package name>/files/example.jpg.
Note: Make sure the specified path exists and has write permissions.
position
The position of the video frame to snapshot in the video processing pipeline. See VideoModulePosition.