SnapshotConfig

Video snapshot settings.

export class SnapshotConfig {
  filePath?: string;
  position?: VideoModulePosition;
}

Properties

filePath
Note: Make sure the directory exists and is writable.
Local path to save the snapshot, including file name and format, for example:
  • iOS: /App Sandbox/Library/Caches/example.jpg
  • Android: /storage/emulated/0/Android/data/<package name>/files/example.jpg
position
The position of the video frame in the video pipeline for the snapshot. See VideoModulePosition.