public class MP4RecordConfig extends Object
| Constructor and Description |
|---|
MP4RecordConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Integer |
getRecordCycle()
周期录制时长。 取值范围:[60,10800]。 单位:秒。 minimum: 60 maximum: 10800
|
Integer |
getRecordMaxDurationToMergeFile()
录制MP4拼接时长,如果流中断超过该时间,则生成新文件。 取值范围:[0,300],缺省为0。 单位:秒。 如果为0表示流中断就生成新文件。 minimum: 0 maximum: 300
|
String |
getRecordPrefix()
录制文件含路径和文件名的前缀。 默认{app_id}/{record_format}/{stream}\\_{file_start_time}/{stream}\\_{file_start_time} 上述特殊变量含义: -
{app_id}:应用id - {record_format}:录制格式 - {stream}:流名 - {file_start_time}:文件生成时间
|
int |
hashCode() |
void |
setRecordCycle(Integer recordCycle) |
void |
setRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile) |
void |
setRecordPrefix(String recordPrefix) |
String |
toString() |
MP4RecordConfig |
withRecordCycle(Integer recordCycle) |
MP4RecordConfig |
withRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile) |
MP4RecordConfig |
withRecordPrefix(String recordPrefix) |
public MP4RecordConfig withRecordCycle(Integer recordCycle)
public Integer getRecordCycle()
public void setRecordCycle(Integer recordCycle)
public MP4RecordConfig withRecordPrefix(String recordPrefix)
public String getRecordPrefix()
public void setRecordPrefix(String recordPrefix)
public MP4RecordConfig withRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile)
public Integer getRecordMaxDurationToMergeFile()
public void setRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile)
Copyright © 2021. All rights reserved.