SnapshotConfig
视频截图设置。
TypeScript
export class SnapshotConfig {
filePath?: string;
position?: VideoModulePosition;
}
filePath
信息
请确保目录存在且可写。
- Windows:
C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg - macOS:
~/Library/Logs/example.jpg
position
截图的视频帧在视频链路中的位置。详见 VideoModulePosition。