MediaRecorderConfiguration
- Android
更新时间不可用
用于配置音视频流的录制参数。
public static class MediaRecorderConfiguration {
public String storagePath;
public int containerFormat = CONTAINER_MP4;
public int streamType = STREAM_TYPE_BOTH;
public int maxDurationMs = 120000;
public int recorderInfoUpdateInterval = 0;
public int width;
public int height;
public int fps;
public int sample_rate;
public int channel_num;
public int videoSourceType;
}自从
自 v3.5.2 版本新增。
属性
| 参数名 | 描述 |
|---|---|
storagePath | |
containerFormat | |
streamType | |
maxDurationMs | |
recorderInfoUpdateInterval | 录制信息的更新间隔,单位为毫秒。有效范围为 [1000, 10000]。SDK 会根据该值触发 onRecorderInfoUpdated 回调以更新录制信息。 |
width | |
height | |
fps | |
sample_rate | |
channel_num | |
videoSourceType | (必填)录制使用的视频源类型。详见 VideoSourceType。 |