Call AddLiveStreamMerge to add a primary/backup stream merge configuration.
Operation description
Exceeding the API limit of 100 QPS per account triggers throttling, which may disrupt your service. Please make calls reasonably.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveStreamMerge |
create |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
The streaming domain. |
example.com |
| AppName |
string |
Yes |
The AppName of the output stream. For the configuration to take effect, this AppName must match the one in the ingest URL. Wildcards ( |
app |
| StreamName |
string |
Yes |
The StreamName of the output stream. For the configuration to take effect, this StreamName must match the one in the ingest URL. Wildcards ( |
StreamName |
| InAppName1 |
string |
Yes |
The AppName of the primary input stream. This value must match the AppName in the ingest URL for the primary stream. |
app1 |
| InStreamName1 |
string |
Yes |
The StreamName of the primary input stream. This value must match the StreamName in the ingest URL for the primary stream. |
InStream1 |
| InAppName2 |
string |
Yes |
The AppName of the backup input stream. This value must match the AppName in the ingest URL for the backup stream. |
app2 |
| InStreamName2 |
string |
Yes |
The StreamName of the backup input stream. This value must match the StreamName in the ingest URL for the backup stream. |
stream2 |
| StartTime |
string |
Yes |
The start time of the stream merge. The time must be in UTC and specified in the ISO 8601 standard format: |
2020-05-29T00:00:00Z |
| EndTime |
string |
Yes |
The end time of the stream merge. The time must be in UTC and specified in the ISO 8601 standard format: Note
The interval between |
2020-05-29T01:00:00Z |
| Protocol |
string |
No |
The live stream protocol for the input streams. Valid values:
|
rtmp |
| LiveMerger |
string |
No |
The engine to use for stream merging.
|
off |
| MergeParameters |
string |
No |
Parameters that define the failover conditions. A failover is triggered when one of the following conditions is met:
|
ali_low_frame_rate_threshold=10&ali_max_no_frame_timeout=5&block_all_jitter=0 |
The values for AppName, InAppName1, and InAppName2 must be unique. Similarly, the values for StreamName, InStreamName1, and InStreamName2 must be unique.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
| Message |
string |
|
OK |
The message "config invalid, degrade to no livemerger" means the configuration for the new liveswitch engine is incomplete, causing an automatic downgrade to the legacy engine.
Examples
Success response
JSON format
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****",
"Message": "OK"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified parameter StartTime is not valid. | |
| 400 | InvalidEndTime.Malformed | Specified parameter EndTime is not valid. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
| 400 | InvalidParam | Parameter invalid. | Illegal input parameters |
| 400 | QuotaExceeded.Merge | Exceed max merge count limit | |
| 400 | ConfigAlreadyExists | Config has already exist. | |
| 400 | Duration.Exceed | Duration between StartTime and EndTime is too long. | |
| 400 | InvalidParam.CodeIllegalDuration | %s. | The value of start time should be less than the value of end 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.