public class StartPublishCdnStreamRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
StartPublishCdnStreamRequest()  | 
StartPublishCdnStreamRequest(StartPublishCdnStreamRequest 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 | 
|---|---|
AgentParams | 
getAgentParams()
Get The information of the relaying robot in the room. 
 | 
McuAudioParams | 
getAudioParams()
Get The audio encoding parameters. 
 | 
McuFeedBackRoomParams[] | 
getFeedBackRoomParams()
Get The information of the room to which streams are relayed. 
 | 
McuPublishCdnParam[] | 
getPublishCdnParams()
Get The information of the CDNs to relay to. 
 | 
McuRecordParams | 
getRecordParams()
Get Relay Recording Parameters. 
 | 
String | 
getRoomId()
Get The ID of the room whose streams are relayed (the main room). 
 | 
Long | 
getRoomIdType()
Get The type of the `RoomId` parameter, which must be the same as the ID type of the room whose streams are relayed. 
 | 
Long | 
getSdkAppId()
Get The [SDKAppID](https://intl.cloud.tencent.com/document/product/647/37714) of the TRTC room whose streams are relayed. 
 | 
McuSeiParams | 
getSeiParams()
Get The stream mixing SEI parameters. 
 | 
SingleSubscribeParams | 
getSingleSubscribeParams()
Get The information of a single stream relayed. 
 | 
McuVideoParams | 
getVideoParams()
Get The video encoding parameters for relaying. 
 | 
Long | 
getWithTranscoding()
Get Whether to transcode the streams. 
 | 
void | 
setAgentParams(AgentParams AgentParams)
Set The information of the relaying robot in the room. 
 | 
void | 
setAudioParams(McuAudioParams AudioParams)
Set The audio encoding parameters. 
 | 
void | 
setFeedBackRoomParams(McuFeedBackRoomParams[] FeedBackRoomParams)
Set The information of the room to which streams are relayed. 
 | 
void | 
setPublishCdnParams(McuPublishCdnParam[] PublishCdnParams)
Set The information of the CDNs to relay to. 
 | 
void | 
setRecordParams(McuRecordParams RecordParams)
Set Relay Recording Parameters. 
 | 
void | 
setRoomId(String RoomId)
Set The ID of the room whose streams are relayed (the main room). 
 | 
void | 
setRoomIdType(Long RoomIdType)
Set The type of the `RoomId` parameter, which must be the same as the ID type of the room whose streams are relayed. 
 | 
void | 
setSdkAppId(Long SdkAppId)
Set The [SDKAppID](https://intl.cloud.tencent.com/document/product/647/37714) of the TRTC room whose streams are relayed. 
 | 
void | 
setSeiParams(McuSeiParams SeiParams)
Set The stream mixing SEI parameters. 
 | 
void | 
setSingleSubscribeParams(SingleSubscribeParams SingleSubscribeParams)
Set The information of a single stream relayed. 
 | 
void | 
setVideoParams(McuVideoParams VideoParams)
Set The video encoding parameters for relaying. 
 | 
void | 
setWithTranscoding(Long WithTranscoding)
Set Whether to transcode the streams. 
 | 
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 StartPublishCdnStreamRequest()
public StartPublishCdnStreamRequest(StartPublishCdnStreamRequest source)
public Long getSdkAppId()
public void setSdkAppId(Long SdkAppId)
SdkAppId - The [SDKAppID](https://intl.cloud.tencent.com/document/product/647/37714) of the TRTC room whose streams are relayed.public String getRoomId()
public void setRoomId(String RoomId)
RoomId - The ID of the room whose streams are relayed (the main room).public Long getRoomIdType()
public void setRoomIdType(Long RoomIdType)
RoomIdType - The type of the `RoomId` parameter, which must be the same as the ID type of the room whose streams are relayed. 0: integer; 1: string.public AgentParams getAgentParams()
public void setAgentParams(AgentParams AgentParams)
AgentParams - The information of the relaying robot in the room.public Long getWithTranscoding()
public void setWithTranscoding(Long WithTranscoding)
WithTranscoding - Whether to transcode the streams. `0`: No. `1`: Yes. This parameter determines whether transcoding fees are charged. If it is `0`, streams will only be relayed, and no transcoding fees will be incurred. If it is `1`, streams will be transcoded before being relayed, and transcoding fees will be incurred.public McuAudioParams getAudioParams()
public void setAudioParams(McuAudioParams AudioParams)
AudioParams - The audio encoding parameters. Because audio is always transcoded (no fees are incurred), this parameter is required when you start a relay task.public McuVideoParams getVideoParams()
public void setVideoParams(McuVideoParams VideoParams)
VideoParams - The video encoding parameters for relaying. If you do not pass this parameter, only audio will be relayed.public SingleSubscribeParams getSingleSubscribeParams()
public void setSingleSubscribeParams(SingleSubscribeParams SingleSubscribeParams)
SingleSubscribeParams - The information of a single stream relayed. When you relay a single stream, set `WithTranscoding` to 0.public McuPublishCdnParam[] getPublishCdnParams()
public void setPublishCdnParams(McuPublishCdnParam[] PublishCdnParams)
PublishCdnParams - The information of the CDNs to relay to. You need to specify at least one between this parameter and `FeedBackRoomParams.N`.public McuSeiParams getSeiParams()
public void setSeiParams(McuSeiParams SeiParams)
SeiParams - The stream mixing SEI parameters.public McuFeedBackRoomParams[] getFeedBackRoomParams()
public void setFeedBackRoomParams(McuFeedBackRoomParams[] FeedBackRoomParams)
FeedBackRoomParams - The information of the room to which streams are relayed. Between this parameter and `PublishCdnParams`, you must specify at least one. Please note that relaying to a TRTC room is only supported in some SDK versions. For details, please contact technical support.public McuRecordParams getRecordParams()
public void setRecordParams(McuRecordParams RecordParams)
RecordParams - Relay Recording Parameters.
Example value:{"UniRecord":1,"RecordKey": "test_recore_key_a"}Copyright © 2025. All rights reserved.