Query primary/backup stream merge configuration.
Operation description
The QPS limit for a single user of this API is 100 calls per second. If this limit is exceeded, API calls will be throttled, which may affect your business. Please call this API appropriately.
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 |
Region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
Streaming domain name. |
example.com |
| AppName |
string |
No |
Merged output App name. You can view this on the Primary/Backup Stream Merge Configuration page. |
app |
| StreamName |
string |
No |
Merged output Stream name. You can view this on the Primary/Backup Stream Merge Configuration page. |
StreamName |
| Protocol |
string |
No |
Streaming protocol. Valid values:
|
rtmp |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| LiveStreamMergeList |
object |
||
| LiveStreamMerge |
array<object> |
List of live stream information. |
|
|
object |
List of 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. Valid values:
|
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 |
| SwitchMode |
string |
||
| RequestId |
string |
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",
"SwitchMode": ""
}
]
},
"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.