public class RecordParams extends AbstractModel
Constructor and Description |
---|
RecordParams() |
RecordParams(RecordParams 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 |
getAvMerge()
Get Whether to merge the audio and video of a user in the single-stream recording mode.
|
Long |
getMaxIdleTime()
Get The time period (seconds) to wait after there are no anchors in a room to stop recording automatically.
|
Long |
getOutputFormat()
Get The output format.
|
Long |
getRecordMode()
Get The recording mode.
|
Long |
getStreamType()
Get The media type of the streams to record.
|
SubscribeStreamUserIds |
getSubscribeStreamUserIds()
Get The allowlist/blocklist for stream subscription.
|
void |
setAvMerge(Long AvMerge)
Set Whether to merge the audio and video of a user in the single-stream recording mode.
|
void |
setMaxIdleTime(Long MaxIdleTime)
Set The time period (seconds) to wait after there are no anchors in a room to stop recording automatically.
|
void |
setOutputFormat(Long OutputFormat)
Set The output format.
|
void |
setRecordMode(Long RecordMode)
Set The recording mode.
|
void |
setStreamType(Long StreamType)
Set The media type of the streams to record.
|
void |
setSubscribeStreamUserIds(SubscribeStreamUserIds SubscribeStreamUserIds)
Set The allowlist/blocklist for stream subscription.
|
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 RecordParams()
public RecordParams(RecordParams source)
public Long getRecordMode()
public void setRecordMode(Long RecordMode)
RecordMode
- The recording mode.
1: Single-stream recording. Records the audio and video of each subscribed user (`UserId`) in a room and saves the recording files to the cloud.
2: Mixed-stream recording. Mixes the audios and videos of subscribed users (`UserId`) in a room, records the mixed stream, and saves the recording files to the cloud.public Long getMaxIdleTime()
public void setMaxIdleTime(Long MaxIdleTime)
MaxIdleTime
- The time period (seconds) to wait after there are no anchors in a room to stop recording automatically. The value cannot be smaller than 5 or larger than 86400 (24 hours). Default value: 30.public Long getStreamType()
public void setStreamType(Long StreamType)
StreamType
- The media type of the streams to record.
0: Audio and video streams (default)
1: Audio streams only
2: Video streams onlypublic SubscribeStreamUserIds getSubscribeStreamUserIds()
public void setSubscribeStreamUserIds(SubscribeStreamUserIds SubscribeStreamUserIds)
SubscribeStreamUserIds
- The allowlist/blocklist for stream subscription.public Long getOutputFormat()
public void setOutputFormat(Long OutputFormat)
OutputFormat
- The output format. 0 (default): HLS; 1: HLS + MP4 (recorded in HLS and converted to MP4). This parameter is invalid if you save recording files to VOD. To specify the format of files saved to VOD, use `MediaType` of `TencentVod`.public Long getAvMerge()
public void setAvMerge(Long AvMerge)
AvMerge
- Whether to merge the audio and video of a user in the single-stream recording mode. 0 (default): Do not mix the audio and video; 1: Mix the audio and video into one TS file. You don’t need to specify this parameter for mixed-stream recording, which merges audios and videos by default.Copyright © 2022. All rights reserved.