SnapshotConfig
用于配置视频截图的结构体。
C++
struct SnapshotConfig {
const char* filePath;
media::base::VIDEO_MODULE_POSITION position;
};
filePath
信息
请确保指定的路径存在且可写。
- Windows:
C:\Users\<user_name>\AppData\Local\声网\<process_name>\example.jpg - iOS:
/App Sandbox/Library/Caches/example.jpg - macOS:
~/Library/Logs/example.jpg - Android:
/storage/emulated/0/Android/data/<package name>/files/example.jpg。
position
截图视频帧在视频处理流程中的位置,详见 VIDEO_MODULE_POSITION。