public class StartPublishLiveStreamRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
StartPublishLiveStreamRequest() |
StartPublishLiveStreamRequest(StartPublishLiveStreamRequest 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 所有参与混流转推的主播持续离开TRTC房间或切换成观众超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
|
PublishParams[] |
getPublishParams()
Get 转推的URL参数,一个任务最多支持10个推流URL
|
VideoParams |
getVideoParams()
Get 转推视频参数
|
Long |
getWithTranscoding()
Get 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。 示例值:1
|
void |
setMaxIdleTime(Long MaxIdleTime)
Set 所有参与混流转推的主播持续离开TRTC房间或切换成观众超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
|
void |
setPublishParams(PublishParams[] PublishParams)
Set 转推的URL参数,一个任务最多支持10个推流URL
|
void |
setVideoParams(VideoParams VideoParams)
Set 转推视频参数
|
void |
setWithTranscoding(Long WithTranscoding)
Set 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。 示例值:1
|
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, toJsonString
public StartPublishLiveStreamRequest()
public StartPublishLiveStreamRequest(StartPublishLiveStreamRequest source)
public Long getWithTranscoding()
public void setWithTranscoding(Long WithTranscoding)
WithTranscoding
- 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。 示例值:1public Long getMaxIdleTime()
public void setMaxIdleTime(Long MaxIdleTime)
MaxIdleTime
- 所有参与混流转推的主播持续离开TRTC房间或切换成观众超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。public VideoParams getVideoParams()
public void setVideoParams(VideoParams VideoParams)
VideoParams
- 转推视频参数public PublishParams[] getPublishParams()
public void setPublishParams(PublishParams[] PublishParams)
PublishParams
- 转推的URL参数,一个任务最多支持10个推流URLCopyright © 2025. All rights reserved.