public class HLSRecordConfig extends Object
| Constructor and Description |
|---|
HLSRecordConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Integer |
getRecordCycle()
周期录制时长。 取值范围:[60,43200]或者0,如果为0则整个流录制为一个文件。 单位:秒。 minimum: 0 maximum: 43200
|
Integer |
getRecordMaxDurationToMergeFile()
录制HLS文件拼接时长,如果流中断超过该时间,则生成新文件。 取值范围:[-1,300],缺省为0。 单位:秒。 - 如果为0表示流中断就生成新文件。 - 如果为-1则表示流中断恢复后追加到原来的文件中(相隔不超过30天)。
minimum: -1 maximum: 300
|
String |
getRecordPrefix()
录制m3u8文件含路径和文件名的前缀 默认{app_id}/{record_format}/{stream}\\_{file_start_time}/{stream}\\_{file_start_time}
上述特殊变量含义: - {app_id}:应用id - {record_format}:录制格式 - {stream}:流名 - {file_start_time}:文件生成时间
|
Integer |
getRecordSliceDuration()
录制HLS时ts的切片时长,非必填。 取值范围:[2,60],缺省为10。 单位:秒。 minimum: 2 maximum: 60
|
int |
hashCode() |
void |
setRecordCycle(Integer recordCycle) |
void |
setRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile) |
void |
setRecordPrefix(String recordPrefix) |
void |
setRecordSliceDuration(Integer recordSliceDuration) |
String |
toString() |
HLSRecordConfig |
withRecordCycle(Integer recordCycle) |
HLSRecordConfig |
withRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile) |
HLSRecordConfig |
withRecordPrefix(String recordPrefix) |
HLSRecordConfig |
withRecordSliceDuration(Integer recordSliceDuration) |
public HLSRecordConfig withRecordCycle(Integer recordCycle)
public Integer getRecordCycle()
public void setRecordCycle(Integer recordCycle)
public HLSRecordConfig withRecordPrefix(String recordPrefix)
public String getRecordPrefix()
public void setRecordPrefix(String recordPrefix)
public HLSRecordConfig withRecordSliceDuration(Integer recordSliceDuration)
public Integer getRecordSliceDuration()
public void setRecordSliceDuration(Integer recordSliceDuration)
public HLSRecordConfig withRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile)
public Integer getRecordMaxDurationToMergeFile()
public void setRecordMaxDurationToMergeFile(Integer recordMaxDurationToMergeFile)
Copyright © 2021. All rights reserved.