public class McuRecordParams extends AbstractModel
header, skipSign| Constructor and Description |
|---|
McuRecordParams() |
McuRecordParams(McuRecordParams 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 |
getMaxMediaFileDuration()
Get [Valid only when UniRecord=3]
Single File Duration
Corresponds to template parameter "Max File Duration." Unit: minutes.
|
McuStorageParams |
getMcuStorageParams()
Get [Valid only when UniRecord=3]
Recording Storage Parameters
Corresponds to console parameter "Storage Location." Supports Tencent VOD or COS (exclusively).
|
String[] |
getRecordFormat()
Get [Valid only when UniRecord=3]
Recording Output Formats
Corresponds to template parameter "File Format." Supported values: hls, mp4, aac.
|
String |
getRecordKey()
Get Recording Task Key
Identifies a recording task.
|
Long |
getRecordWaitTime()
Get [Valid only when UniRecord=3]
Recording Resume Wait Time
Corresponds to template parameter "Resume Wait Duration." Unit: seconds.
|
Long |
getStreamType()
Get [Valid only when UniRecord=3]
Recording Media Type
Corresponds to template parameter "Recording Format."
0: Audio+Video, 1: Audio only, 2: Video only.
|
Long |
getUniRecord()
Get Relay Recording Mode
0/blank: Not currently supported, behavior undefined.
|
String |
getUserDefineRecordPrefix()
Get Recording Filename Prefix
Filename prefix (<=64 bytes).
|
void |
setMaxMediaFileDuration(Long MaxMediaFileDuration)
Set [Valid only when UniRecord=3]
Single File Duration
Corresponds to template parameter "Max File Duration." Unit: minutes.
|
void |
setMcuStorageParams(McuStorageParams McuStorageParams)
Set [Valid only when UniRecord=3]
Recording Storage Parameters
Corresponds to console parameter "Storage Location." Supports Tencent VOD or COS (exclusively).
|
void |
setRecordFormat(String[] RecordFormat)
Set [Valid only when UniRecord=3]
Recording Output Formats
Corresponds to template parameter "File Format." Supported values: hls, mp4, aac.
|
void |
setRecordKey(String RecordKey)
Set Recording Task Key
Identifies a recording task.
|
void |
setRecordWaitTime(Long RecordWaitTime)
Set [Valid only when UniRecord=3]
Recording Resume Wait Time
Corresponds to template parameter "Resume Wait Duration." Unit: seconds.
|
void |
setStreamType(Long StreamType)
Set [Valid only when UniRecord=3]
Recording Media Type
Corresponds to template parameter "Recording Format."
0: Audio+Video, 1: Audio only, 2: Video only.
|
void |
setUniRecord(Long UniRecord)
Set Relay Recording Mode
0/blank: Not currently supported, behavior undefined.
|
void |
setUserDefineRecordPrefix(String UserDefineRecordPrefix)
Set Recording Filename Prefix
Filename prefix (<=64 bytes).
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic McuRecordParams()
public McuRecordParams(McuRecordParams source)
public Long getUniRecord()
public void setUniRecord(Long UniRecord)
UniRecord - Relay Recording Mode
0/blank: Not currently supported, behavior undefined.
1: Disable recording.
2: Start recording (uses console's auto-recording template parameters. Reference: [Link to Documentation]).
3: Start recording (uses API-specified parameters).
Example: 2public String getRecordKey()
public void setRecordKey(String RecordKey)
RecordKey - Recording Task Key
Identifies a recording task. This parameter allows merging multiple relay tasks into one recording file. If unspecified, only records the current relay task.
[Format: Up to 128 bytes; only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-).]
Example: test_record_key_apublic Long getRecordWaitTime()
public void setRecordWaitTime(Long RecordWaitTime)
RecordWaitTime - [Valid only when UniRecord=3]
Recording Resume Wait Time
Corresponds to template parameter "Resume Wait Duration." Unit: seconds.
Range: 5-86400 (24 hours). Default: 30. Recording stops if idle longer than this value.
Example: 30public String[] getRecordFormat()
public void setRecordFormat(String[] RecordFormat)
RecordFormat - [Valid only when UniRecord=3]
Recording Output Formats
Corresponds to template parameter "File Format." Supported values: hls, mp4, aac. Default: mp4.
Note: mp4 and aac formats are mutually exclusive.
Example (MP4 only): ["mp4"]
Example (MP4 + HLS): ["mp4","hls"]public Long getMaxMediaFileDuration()
public void setMaxMediaFileDuration(Long MaxMediaFileDuration)
MaxMediaFileDuration - [Valid only when UniRecord=3]
Single File Duration
Corresponds to template parameter "Max File Duration." Unit: minutes.
Range: 1-1440 (24 hours). Default: 1440. Applies only to mp4/aac. Actual duration is capped at 2GB file size.
Example: 1440public Long getStreamType()
public void setStreamType(Long StreamType)
StreamType - [Valid only when UniRecord=3]
Recording Media Type
Corresponds to template parameter "Recording Format."
0: Audio+Video, 1: Audio only, 2: Video only. Output is the intersection of this setting and relay content.
Example: 0public String getUserDefineRecordPrefix()
public void setUserDefineRecordPrefix(String UserDefineRecordPrefix)
UserDefineRecordPrefix - Recording Filename Prefix
Filename prefix (<=64 bytes). Applies only to VOD storage.
Format: Letters (a-z, A-Z), numbers (0-9), underscores (_), hyphens (-).*
Example: mcu_record_prefixpublic McuStorageParams getMcuStorageParams()
public void setMcuStorageParams(McuStorageParams McuStorageParams)
McuStorageParams - [Valid only when UniRecord=3]
Recording Storage Parameters
Corresponds to console parameter "Storage Location." Supports Tencent VOD or COS (exclusively).
Example: {"McuCloudVod":{"McuTencentVod":{"ExpireTime":86400}}}Copyright © 2025. All rights reserved.