SnapshotConfig

The snapshot configuration.

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

Attributes

filePath
The local path (including filename extensions) of the snapshot. For example:
  • Android: /storage/emulated/0/Android/data/<package name>/files/example.jpg
Attention: Ensure that the path you specify exists and is writable.
position
The position of the snapshot video frame in the video pipeline. See VideoModulePosition.