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 |
getMaxIdleTime()
Get The time period (seconds) to wait after there are no anchors in a room to stop recording automatically.
|
Long |
getOutputFormat()
Get The format of recording files.
|
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 |
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 format of recording files.
|
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, toJsonStringpublic 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 (M3U8/TS) 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 (M3U8/TS) 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 format of recording files. 0 (default): HLS; 1: HLS + MP4 (recorded in HLS and converted to MP4).Copyright © 2022. All rights reserved.