public class CreateLivePullStreamTaskRequest extends AbstractModel
Constructor and Description |
---|
CreateLivePullStreamTaskRequest() |
CreateLivePullStreamTaskRequest(CreateLivePullStreamTaskRequest 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 |
---|---|
String |
getAppName()
Get The application to push to.
|
String |
getBackupSourceType()
Get The backup source type.
|
String |
getBackupSourceUrl()
Get The URL of the backup source.
|
String[] |
getCallbackEvents()
Get The events to listen for.
|
String |
getCallbackUrl()
Get A custom callback URL.
|
String |
getComment()
Get The remarks for a task, not longer than 512 bytes.
|
String |
getDomainName()
Get The push domain name.
|
String |
getEndTime()
Get The end time.
|
String |
getExtraCmd()
Get Other parameters.
|
String |
getOperator()
Get The operator.
|
String |
getPushArgs()
Get The push parameter.
|
String |
getSourceType()
Get The source type.
|
String[] |
getSourceUrls()
Get The source URL(s).
|
String |
getStartTime()
Get The start time.
|
String |
getStreamName()
Get The stream name.
|
String |
getToUrl()
Get The complete destination URL.
|
Long |
getVodLocalMode()
Get Whether to use local mode when the source type is video files.
|
String |
getVodLoopTimes()
Get The number of times to loop video files.
|
String |
getVodRefreshType()
Get The behavior after the source video files (`SourceUrls`) are changed.
|
PullPushWatermarkInfo[] |
getWatermarkList()
Get The information of watermarks to add.
|
void |
setAppName(String AppName)
Set The application to push to.
|
void |
setBackupSourceType(String BackupSourceType)
Set The backup source type.
|
void |
setBackupSourceUrl(String BackupSourceUrl)
Set The URL of the backup source.
|
void |
setCallbackEvents(String[] CallbackEvents)
Set The events to listen for.
|
void |
setCallbackUrl(String CallbackUrl)
Set A custom callback URL.
|
void |
setComment(String Comment)
Set The remarks for a task, not longer than 512 bytes.
|
void |
setDomainName(String DomainName)
Set The push domain name.
|
void |
setEndTime(String EndTime)
Set The end time.
|
void |
setExtraCmd(String ExtraCmd)
Set Other parameters.
|
void |
setOperator(String Operator)
Set The operator.
|
void |
setPushArgs(String PushArgs)
Set The push parameter.
|
void |
setSourceType(String SourceType)
Set The source type.
|
void |
setSourceUrls(String[] SourceUrls)
Set The source URL(s).
|
void |
setStartTime(String StartTime)
Set The start time.
|
void |
setStreamName(String StreamName)
Set The stream name.
|
void |
setToUrl(String ToUrl)
Set The complete destination URL.
|
void |
setVodLocalMode(Long VodLocalMode)
Set Whether to use local mode when the source type is video files.
|
void |
setVodLoopTimes(String VodLoopTimes)
Set The number of times to loop video files.
|
void |
setVodRefreshType(String VodRefreshType)
Set The behavior after the source video files (`SourceUrls`) are changed.
|
void |
setWatermarkList(PullPushWatermarkInfo[] WatermarkList)
Set The information of watermarks to add.
|
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 CreateLivePullStreamTaskRequest()
public CreateLivePullStreamTaskRequest(CreateLivePullStreamTaskRequest source)
public String getSourceType()
public void setSourceType(String SourceType)
SourceType
- The source type. Valid values:
PullLivePushLive: Live streaming
PullVodPushLive: Video files
PullPicPushLive: Imagespublic String[] getSourceUrls()
public void setSourceUrls(String[] SourceUrls)
SourceUrls
- The source URL(s).
If `SourceType` is `PullLivePushLive`, you can specify only one source URL.
If `SourceType` is `PullVodPushLive`, you can specify at most 30 source URLs.
Supported file formats: FLV, MP4, HLS.
Supported protocols: HTTP, HTTPS, RTMP, RTMPS, RTSP, SRT.
Notes:
1. We recommend you use FLV files as the source. Poorly interleaved MP4 files may result in playback stuttering. You can also re-interleave your MP4 files before adding them as the source.
2. Do not use private network domains or malicious URLs. CSS will block accounts that do.
3. To avoid push and playback issues, make sure the source files are properly interleaved.
4. Supported video coding formats: H.264, H.265.
5. Supported audio coding format: AAC.
6. Use small video files, preferably not longer than one hour. Large files may take a long time to load or resume after pause. Relay may fail if the time consumed exceeds 15 seconds.public String getDomainName()
public void setDomainName(String DomainName)
DomainName
- The push domain name.
The pulled stream is pushed to this domain.
Note: If the destination is not a CSS address and its format is different from that of CSS addresses, pass the full address to `ToUrl`. For details, see the description of the `ToUrl` parameter.public String getAppName()
public void setAppName(String AppName)
AppName
- The application to push to.
The pulled stream is pushed to this application.public String getStreamName()
public void setStreamName(String StreamName)
StreamName
- The stream name.
The pulled stream is pushed under this name.public String getStartTime()
public void setStartTime(String StartTime)
StartTime
- The start time.
It must be in UTC format.
Example: 2019-01-08T10:00:00Z.
Note: Beijing time is 8 hours ahead of UTC. The [ISO 8601 format](https://intl.cloud.tencent.com/document/product/266/11732#iso-date-format) is used.public String getEndTime()
public void setEndTime(String EndTime)
EndTime
- The end time. Notes:
1. The end time must be later than the start time.
2. The end time and start time must be later than the current time.
3. The end time and start time must be less than seven days apart.
It must be in UTC format.
Example: 2019-01-08T10:00:00Z.
Note: Beijing time is 8 hours ahead of UTC. The [ISO 8601 format](https://intl.cloud.tencent.com/document/product/266/11732#iso-date-format) is used.public String getOperator()
public void setOperator(String Operator)
Operator
- The operator.public String getPushArgs()
public void setPushArgs(String PushArgs)
PushArgs
- The push parameter.
This is a custom parameter carried during push.
Example:
bak=1&test=2public String[] getCallbackEvents()
public void setCallbackEvents(String[] CallbackEvents)
CallbackEvents
- The events to listen for. If you do not pass this parameter, all events will be listened for.
TaskStart: Callback for starting a task
TaskExit: Callback for ending a task
VodSourceFileStart: Callback for starting to pull from video files
VodSourceFileFinish: Callback for stopping pulling from video files
ResetTaskConfig: Callback for modifying a task
`TaskAlarm` indicates a warning event. `AlarmType` examples:
PullFileUnstable: Pull from video files is unstable.
PushStreamUnstable: Push is unstable.
PullFileFailed: Error pulling from video files.
PushStreamFailed: Push error.
FileEndEarly: The video file ended prematurely.public String getVodLoopTimes()
public void setVodLoopTimes(String VodLoopTimes)
VodLoopTimes
- The number of times to loop video files. Default value: -1.
-1: Loop indefinitely
0: Do not loop
> 0: The number of loop times. A task will end either when the videos are looped for the specified number of times or at the specified task end time, whichever is earlier.
This parameter is valid only when the source is video files.public String getVodRefreshType()
public void setVodRefreshType(String VodRefreshType)
VodRefreshType
- The behavior after the source video files (`SourceUrls`) are changed.
ImmediateNewSource: Play the new videos immediately
ContinueBreakPoint: Play the new videos after the current video is finished playing (the remaining videos in the old playlist will not be played).
This parameter is valid only if the source before the change is video files.public String getCallbackUrl()
public void setCallbackUrl(String CallbackUrl)
CallbackUrl
- A custom callback URL.
Callbacks about pull and relay events will be sent to this URL.public String getExtraCmd()
public void setExtraCmd(String ExtraCmd)
ExtraCmd
- Other parameters.
For example, you can use `ignore_region` to ignore the region passed in and assign a region based on load distribution.public String getComment()
public void setComment(String Comment)
Comment
- The remarks for a task, not longer than 512 bytes.public String getToUrl()
public void setToUrl(String ToUrl)
ToUrl
- The complete destination URL.
If you specify this parameter, make sure you pass in an empty string for `DomainName`, `AppName`, and `StreamName`.
Note: Make sure that the expiration time of the signature is later than the task end time.public String getBackupSourceType()
public void setBackupSourceType(String BackupSourceType)
BackupSourceType
- The backup source type.
PullLivePushLive: Live streaming
PullVodPushLive: Video files
Notes:
1. Backup sources are supported only if the primary source type is live streaming.
2. When pull from the primary source is interrupted, the system will pull from the backup source.
3. If the backup source is a video file, each time the video is finished, the system will check if the primary source is recovered and will switch back if it is.public String getBackupSourceUrl()
public void setBackupSourceUrl(String BackupSourceUrl)
BackupSourceUrl
- The URL of the backup source.
You can specify only one backup source URL.public PullPushWatermarkInfo[] getWatermarkList()
public void setWatermarkList(PullPushWatermarkInfo[] WatermarkList)
WatermarkList
- The information of watermarks to add.
Notes:
1. You can add up to four watermarks to different locations of the video.
2. Make sure you use publicly accessible URLs for the watermark images.
3. Supported image formats include PNG, JPG, and GIF.public Long getVodLocalMode()
public void setVodLocalMode(Long VodLocalMode)
VodLocalMode
- Whether to use local mode when the source type is video files. The default is `0`.
0: Do not use local mode
1: Use local mode
Note: If you enable local mode, MP4 files will be downloaded to local storage, and the local files will be used for push. This ensures more reliable push. Pushing a local file will incur additional fees.Copyright © 2023. All rights reserved.