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 to automatically stop recording after there are no anchors (users who publish streams) in a room.
|
Long |
getMaxMediaFileDuration()
Get The maximum file duration allowed (minutes).
|
Long |
getMediaId()
Get The type of stream to record.
|
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 to automatically stop recording after there are no anchors (users who publish streams) in a room.
|
void |
setMaxMediaFileDuration(Long MaxMediaFileDuration)
Set The maximum file duration allowed (minutes).
|
void |
setMediaId(Long MediaId)
Set The type of stream to record.
|
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 to automatically stop recording after there are no anchors (users who publish streams) in a room. Value range: 5-86400 (max 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; `2`: HLS + AAC. 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.public Long getMaxMediaFileDuration()
public void setMaxMediaFileDuration(Long MaxMediaFileDuration)
MaxMediaFileDuration
- The maximum file duration allowed (minutes). If the output format is AAC or MP4, and the maximum file duration is exceeded, the file will be segmented. Value range: 1-1440. Default value: 1440 (24 hours). The maximum file size allowed is 2 GB. If the file size exceeds 2 GB, or the file duration exceeds 24 hours, the file will also be segmented.
This parameter is invalid if the output format is HLS.public Long getMediaId()
public void setMediaId(Long MediaId)
MediaId
- The type of stream to record. `0`: The primary stream and substream; `1`: The primary stream; `2`: The substream.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.