public class RecordParam extends AbstractModel
Constructor and Description |
---|
RecordParam() |
RecordParam(RecordParam source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getEnable()
Get Whether to enable recording in the current format.
|
Long |
getRecordInterval()
Get Recording interval.
|
Long |
getStorageTime()
Get Recording storage period.
|
String |
getVodFileName()
Get Recording filename.
|
Long |
getVodSubAppId()
Get VOD subapplication ID.
|
void |
setEnable(Long Enable)
Set Whether to enable recording in the current format.
|
void |
setRecordInterval(Long RecordInterval)
Set Recording interval.
|
void |
setStorageTime(Long StorageTime)
Set Recording storage period.
|
void |
setVodFileName(String VodFileName)
Set Recording filename.
|
void |
setVodSubAppId(Long VodSubAppId)
Set VOD subapplication ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public RecordParam()
public RecordParam(RecordParam source)
public Long getRecordInterval()
public void setRecordInterval(Long RecordInterval)
RecordInterval
- Recording interval.
In seconds. Default value: 1800.
Value range: 300-7200.
This parameter is not valid for HLS, and a file will be generated from push start to interruption during HLS recording.public Long getStorageTime()
public void setStorageTime(Long StorageTime)
StorageTime
- Recording storage period.
In seconds. Value range: 0-93312000.
0: permanent storage.public Long getEnable()
public void setEnable(Long Enable)
Enable
- Whether to enable recording in the current format. Default value: 0. 0: no, 1: yes.public Long getVodSubAppId()
public void setVodSubAppId(Long VodSubAppId)
VodSubAppId
- VOD subapplication ID.public String getVodFileName()
public void setVodFileName(String VodFileName)
VodFileName
- Recording filename.
Supported special placeholders include:
{StreamID}: stream ID
{StartYear}: start time - year
{StartMonth}: start time - month
{StartDay}: start time - day
{StartHour}: start time - hour
{StartMinute}: start time - minute
{StartSecond}: start time - second
{StartMillisecond}: start time - millisecond
{EndYear}: end time - year
{EndMonth}: end time - month
{EndDay}: end time - day
{EndHour}: end time - hour
{EndMinute}: end time - minute
{EndSecond}: end time - second
{EndMillisecond}: end time - millisecond
If this parameter is not set, the recording filename will be `{StreamID}_{StartYear}-{StartMonth}-{StartDay}-{StartHour}-{StartMinute}-{StartSecond}_{EndYear}-{EndMonth}-{EndDay}-{EndHour}-{EndMinute}-{EndSecond}` by defaultCopyright © 2021. All rights reserved.