Adds a live center stream relay configuration.
Operation description
The single-user QPS limit of this API is 100 calls per second. If the limit is exceeded, API calls will be throttled, which may affect your business. Please make calls appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveCenterTransfer |
create |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
The region ID. |
example.com |
| AppName |
string |
Yes |
The streaming domain. |
testapp |
| StreamName |
string |
Yes |
The name of the live stream application. The AppName you enter must be the same as the AppName of the live stream to be relayed for the configuration to take effect. You can view the AppName on the Stream Management page. |
teststream |
| DstUrl |
string |
Yes |
The name of the live stream. You can view the StreamName on the Stream Management page. |
rtmp://push.example2.aliyunlive.com/testapp1/teststream2 |
| TransferArgs |
string |
Yes |
The third-party live streaming address for relay. You can add up to one address. Note
The protocol of the destination address must be the same as the protocol of the live stream to be relayed. Only RTMP and SRT relay addresses are supported. |
always |
| StartTime |
string |
No |
The validity period of the relay. Valid values:
Note
If the value is time, StartTime and EndTime are required. Valid values:
|
2017-12-21T10:00:00Z |
| EndTime |
string |
No |
The start time of the relay. The date format follows the ISO 8601 notation and uses UTC+0 time. The format is yyyy-MM-ddTHH:mm:ssZ. |
2017-12-22T08:00:00Z |
| EndTime |
string |
No |
The end time of the relay. The date format follows the ISO 8601 notation and uses UTC+0 time. The format is yyyy-MM-ddTHH:mm:ssZ. Note
The end time must be later than the start time. |
2017-12-22T08:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
7908F2FF-44F8-120F-9FD6-85AE4B6C19EC |
Examples
Success response
JSON format
{
"RequestId": "7908F2FF-44F8-120F-9FD6-85AE4B6C19EC"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam | Parameter invalid. | Illegal input parameters |
| 400 | CenterTransfersStreamOverLimit | CenterTransfers stream is over limit for this domainName. | |
| 400 | ConfigAlreadyExists | Config has already exist. | |
| 400 | CodeIllegalDuration | param end_time is before start_time | |
| 500 | InternalError | The request processing has failed due to backend service exception. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.