UpdateLivePullToPush
Updates a stream pulling and pushing task by calling UpdateLivePullToPush.
Operation description
Call this operation to update a stream pulling and pushing task.
If the task has not reached the configured start time, you can update the Region parameter.
While the task is running (including during abnormal retry states), only CallbackUrl and RepeatTime can be updated, and the updates take effect immediately.
If the task is stopped, all parameters except Region can be updated.
QPS limit
The single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API calls are throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateLivePullToPush |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
| TaskId |
string |
Yes |
The task ID. |
fd245384-4067-4f91-9d75-9666a6bc**** |
| Region |
string |
Yes |
The region where the task is launched. Valid values:
Valid values:
|
cn-shanghai |
| StartTime |
string |
No |
The start time of the task. Note
|
2024-08-23T15:30:00Z |
| EndTime |
string |
No |
The end time of the task. Note
|
2024-08-27T14:30:00Z |
| SourceUrls |
array |
No |
The list of source stream URLs. Note
|
changedtesturl |
|
string |
No |
The source stream URL. Note
|
rtmp://pulltest.****.aliyunlive.com/pulltest493/pulltest-w434 |
|
| RepeatNumber |
integer |
No |
The number of times playback repeats after the playlist finishes. Valid values:
Note
|
0 |
| Offset |
integer |
No |
The start offset of the video file, in seconds. The value must be greater than 0. Note
|
2 |
| CallbackUrl |
string |
No |
The callback URL. Default value: empty. Note
|
https://callback*****.com |
| FileIndex |
integer |
No |
The video index. Default value: 0. Note
Update this parameter while the task is stopped. The update takes effect after the task is restarted. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68***** |
| RetCode |
integer |
The return code. Note
|
0 |
| Description |
string |
The error description. |
OK |
Examples
Success response
JSON format
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68*****",
"RetCode": 0,
"Description": "OK"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s. | Parameter error |
| 400 | InvalidParam.CodeIllegalDuration | %s. | The value of start time should be less than the value of end time . |
| 400 | CodeInvalidAliUid | This aliuid does not have a live domain name. | This aluid does not have a live domain name. |
| 400 | CodeTaskNotExist | Task does not exist. | The task does not exist. |
| 400 | CodeTaskHasStarted | The task has already started. | The task has already started and cannot be updated. |
| 500 | InternalError | %s. | error on the live liveapi server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.