Updates a stream pulling-to-pushing task by calling UpdateLivePullToPush.
Operation description
Calls this operation to update a stream pulling-to-pushing task.
If the task has not reached the configured start time, you can update the Region parameter.
If the task is running (including in an exception retry state), 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 the limit is exceeded, the API call is 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 started. 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
The update must be performed when the task is stopped and takes effect after the task is restarted. |
0 |
| ReqAuth |
string |
No |
Specifies whether to add authentication for callbacks. |
no |
| AuthKey |
string |
No |
The authentication key. The key is 16 to 64 characters in length and supports only printable ASCII characters (0x21-0x7e). The key can be used to verify the callback source when receiving callbacks. |
abcd |
| NotifyItemSwitch |
string |
No |
Specifies whether to receive callbacks when the playlist switches during non-live stream pulling-to-pushing tasks. |
off |
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.