文档中心
视频通话 (Legacy)
API 参考
Agora C++ API Reference for All Platforms
Agora C++ API Reference for All Platforms
◆ MediaRecorderConfiguration() [1/2]
agora::rtc::MediaRecorderConfiguration::MediaRecorderConfiguration |
( |
| ) |
|
|
inline |
◆ MediaRecorderConfiguration() [2/2]
◆ storagePath
const char* agora::rtc::MediaRecorderConfiguration::storagePath |
录音文件在本地保存的绝对路径,需精确到文件名及格式。例如:
- Windows:
C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.mp4
- iOS:
/App Sandbox/Library/Caches/example.mp4
- macOS:
/Library/Logs/example.mp4
- Android:
/storage/emulated/0/Android/data/<package name>/files/example.mp4
- 注解
- 请确保你指定的路径存在并且可写。
◆ containerFormat
◆ streamType
◆ maxDurationMs
int agora::rtc::MediaRecorderConfiguration::maxDurationMs |
最大录制时长,单位为毫秒,默认值为 120000。
◆ recorderInfoUpdateInterval
int agora::rtc::MediaRecorderConfiguration::recorderInfoUpdateInterval |
录制信息更新间隔,单位为毫秒,取值范围为 [1000,10000]。SDK 会根据设置 recorderInfoUpdateInterval
值触发 onRecorderInfoUpdated 回调,报告更新后的录制信息。