Public 属性 | |
string | storagePath |
MediaRecorderContainerFormat | containerFormat |
MediaRecorderStreamType | streamType |
int | maxDurationMs |
int | recorderInfoUpdateInterval |
本地音视频流录制配置。
string MediaRecorderConfiguration.storagePath |
录音文件在本地保存的绝对路径,需精确到文件名及格式。例如:
C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.mp4
/App Sandbox/Library/Caches/example.mp4
/Library/Logs/example.mp4
/storage/emulated/0/Android/data/<package name>/files/example.mp4
MediaRecorderContainerFormat MediaRecorderConfiguration.containerFormat |
录制文件的格式。详见 MediaRecorderContainerFormat 。
MediaRecorderStreamType MediaRecorderConfiguration.streamType |
录制内容。详见 MediaRecorderStreamType 。
int MediaRecorderConfiguration.maxDurationMs |
最大录制时长,单位为毫秒,默认值为 120000。
int MediaRecorderConfiguration.recorderInfoUpdateInterval |
录制信息更新间隔,单位为毫秒,取值范围为 [1000,10000]。SDK 会根据设置 recorderInfoUpdateInterval
值触发 OnRecorderInfoUpdatedHandler 回调,报告更新后的录制信息。