# SnapshotConfig (/zh-CN/api-reference/rtc/unreal-cpp/class-snapshotconfig)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```cpp
struct SnapshotConfig {
const char* filePath;
media::base::VIDEO_MODULE_POSITION position;
SnapshotConfig() :filePath(NULL), position(media::base::POSITION_PRE_ENCODER) {}
};
```
## 属性 [#属性]
截图的本地保存路径,需精确到文件名及格式,例如:
- Windows: `C:\Users\\AppData\Local\Agora\\example.jpg`
- iOS: `/App Sandbox/Library/Caches/example.jpg`
- macOS: `~/Library/Logs/example.jpg`
- Android: `/storage/emulated/0/Android/data//files/example.jpg`
:::caution
注意: 请确保目录存在且可写。
:::
截图的视频帧在视频链路中的位置。详见 [VIDEO_MODULE_POSITION](/zh-CN/api-reference/rtc/unreal-cpp/enum-videomoduleposition)。