Retrieves primary/backup stream merge configurations.
Operation description
This operation is limited to 100 queries per second (QPS) per user. If you exceed this limit, API calls are throttled. This may affect your business. We recommend that you call this operation within the specified limit.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
live:DescribeLiveStreamMerge | get | *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 | No | The AppName for the merged stream. View the AppName on the Primary/Backup Stream Merge page. | app |
StreamName | string | No | The StreamName for the merged stream. View the StreamName on the Primary/Backup Stream Merge page. | StreamName |
Protocol | string | No | The streaming protocol. Valid values:
| rtmp |
Response elements
Parameter | Type | Description | Example |
object | |||
| LiveStreamMergeList | object | ||
| LiveStreamMerge | array<object> | Live stream information. | |
object | Live stream information. | ||
AppName | string | The AppName for the merged stream. | app |
AppUsing | string | The AppName of the currently active input stream. | app1 |
DomainName | string | The streaming domain. | example.com |
EndTime | string | The end time of the stream merge. | 2020-05-29T01:00:00Z |
ExtraInAppStreams | string | The 3rd to Nth input streams for the merge. | app3/stream3,app4/stream4,app5/stream5,…,appN/streamN |
InAppName1 | string | The AppName of the primary input stream. | app1 |
InAppName2 | string | The AppName of the backup input stream. | app2 |
InStreamName1 | string | The StreamName of the primary input stream. | InStream1 |
InStreamName2 | string | The StreamName of the backup input stream. | stream2 |
Protocol | string | The protocol of the input live streams. | rtmp |
StartTime | string | The start time of the stream merge. | 2020-05-29T00:00:00Z |
StreamName | string | The StreamName for the merged stream. | StreamName |
StreamUsing | string | The StreamName of the currently active input stream. | InStream1 |
LiveMerger | string | Indicates whether the liveswitch engine is used for the current task. | on |
MergeParameters | string | The failover trigger conditions. Triggers:
If block_all_jitter is set to 1, Rules 2, 3, and 4 do not take effect. Valid values:
| ali_low_frame_rate_threshold=10&ali_max_no_frame_timeout=5&block_all_jitter=0 |
RequestId | string | The request ID. | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Examples
Success response
JSON format
{
"LiveStreamMergeList": {
"LiveStreamMerge": [
{
"AppName": "app",
"AppUsing": "app1",
"DomainName": "example.com",
"EndTime": "2020-05-29T01:00:00Z",
"ExtraInAppStreams": "app3/stream3,app4/stream4,app5/stream5,…,appN/streamN",
"InAppName1": "app1",
"InAppName2": "app2",
"InStreamName1": "InStream1",
"InStreamName2": "stream2",
"Protocol": "rtmp",
"StartTime": "2020-05-29T00:00:00Z",
"StreamName": "StreamName",
"StreamUsing": "InStream1",
"LiveMerger": "on",
"MergeParameters": "ali_low_frame_rate_threshold=10&ali_max_no_frame_timeout=5&block_all_jitter=0\n"
}
]
},
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidParam | Parameter invalid. | Illegal input parameters |
400 | QuotaExceeded.Merge | Exceed max merge count limit | |
400 | ConfigAlreadyExists | Config has already exist. | |
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.