MediaRecorderConfiguration
- HarmonyOS
更新时间不可用
音视频流录制配置。
export class MediaRecorderConfiguration {
public storagePath: string;
public containerFormat: number = AgoraMediaRecorder.CONTAINER_MP4;
public streamType: number = AgoraMediaRecorder.STREAM_TYPE_BOTH;
public maxDurationMs: number = 120000;
public recorderInfoUpdateInterval: number = 0;
public constructor(storagePath: string, containerFormat: number, streamType: number,
maxDurationMs: number, recorderInfoUpdateInterval: number) {
this.storagePath = storagePath;
this.containerFormat = containerFormat;
this.streamType = streamType;
this.maxDurationMs = maxDurationMs;
this.recorderInfoUpdateInterval = recorderInfoUpdateInterval;
}
}| 参数名 | 描述 |
|---|---|
storagePath | |
containerFormat | |
streamType | |
maxDurationMs | |
recorderInfoUpdateInterval | 录制信息更新间隔,单位为毫秒,取值范围为 [1000,10000]。SDK 会根据该值的设置触发 onRecorderInfoUpdated 回调,报告更新后的录制信息。 |