Retrieves all active streams for a specified domain name or application.
Operation description
You can call this operation to query the following types of streams:
all: queries all streams.
raw: queries original streams.
trans: queries transcoded streams.
QPS limit
You can call this operation up to 10,000 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
live:DescribeLiveStreamsOnlineList | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | No | The region ID. | cn-shanghai |
DomainName | string | Yes | The main streaming domain. Note Ensure that the domain is a streaming domain and that you have the required permissions to manage it. | example.com |
AppName | string | No | The name of the application to which the stream belongs. View AppName on the Stream Management page. | liveApp**** |
StreamName | string | No | The stream name. You can specify only one StreamName. View StreamName on the Stream Management page. | liveStream**** |
OnlyStream | string | No | Specifies whether to return only specified fields. Valid values:
| no |
PageSize | integer | No | The number of entries to return on each page. Valid values: 1 to 3000. Default value: 2000. | 1500 |
PageNum | integer | No | The page number. Default value: 1. | 1 |
StreamType | string | No | The stream type. Valid values:
| all |
QueryType | string | No | Specifies whether to use fuzzy match for the stream name. Valid values:
| fuzzy |
Response elements
Parameter | Type | Description | Example |
object | The information about active streams. | ||
RequestId | string | The request ID. | 5c6a2a0df228-4a64- af62-20e91b9676b3 |
TotalPage | integer | The total number of pages. | 2 |
PageNum | integer | The page number. | 1 |
PageSize | integer | The number of entries returned per page. | 10 |
TotalNum | integer | The total number of entries that meet the criteria. | 11 |
| OnlineInfo | object | ||
| LiveStreamOnlineInfo | array<object> | The information about active streams. | |
object | The information about an active streams. | ||
AudioDataRate | integer | The audio bitrate. Unit: Kbps. Note This parameter can only be returned after you submit a ticket for whitelist configuration. | 600 |
FrameRate | integer | The frame rate. Unit: frames per second (fps). | 15 |
PublishUrl | string | The complete ingest URL. | rtmp://demo.aliyundoc.com/live/test**** |
StreamName | string | The stream name. | liveStream**** |
AudioCodecId | integer | The audio codec ID. | 10 |
Height | integer | The height of the video resolution. Unit: pixel. | 720 |
VideoDataRate | integer | The video bitrate. Unit: Kbps. Note This parameter can only be returned after you submit a ticket for whitelist configuration. | 600 |
DomainName | string | The streaming domain. | example.com |
PublishDomain | string | The ingest domain. If live center ingest was used, the streaming domain is returned. | demo.aliyundoc.com |
PublishTime | string | The start time of stream ingest. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2021-08-09T02:37:59Z |
AppName | string | The name of the application to which the stream belongs. | liveApp**** |
PublishType | string | The ingest type. Valid values:
| edge |
VideoCodecId | integer | The video codec ID. | 7 |
Transcoded | string | Indicates whether the stream is a transcoded stream. Valid values:
| no |
Width | integer | The width of the video resolution. Unit: pixel. | 1280 |
ClientIp | string | The IP address of the client for stream ingest. | 106.11.XX.XX |
ServerIp | string | The IP address of the ingest node. | 120.221.XX.XX |
Examples
Success response
JSON format
{
"RequestId": "5c6a2a0df228-4a64- af62-20e91b9676b3",
"TotalPage": 2,
"PageNum": 1,
"PageSize": 10,
"TotalNum": 11,
"OnlineInfo": {
"LiveStreamOnlineInfo": [
{
"AudioDataRate": 600,
"FrameRate": 15,
"PublishUrl": "rtmp://demo.aliyundoc.com/live/test****",
"StreamName": "liveStream****",
"AudioCodecId": 10,
"Height": 720,
"VideoDataRate": 600,
"DomainName": "example.com",
"PublishDomain": "demo.aliyundoc.com",
"PublishTime": "2021-08-09T02:37:59Z",
"AppName": "liveApp****",
"PublishType": "edge",
"VideoCodecId": 7,
"Transcoded": "no",
"Width": 1280,
"ClientIp": "106.11.XX.XX",
"ServerIp": "120.221.XX.XX"
}
]
}
}Error codes
HTTP status code | Error code | Error message | Description |
400 | QpsOverLimit | Qps is over limit for this domainName. | |
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
400 | InvalidEndTime.Mismatch | Specified end time does not match the specified start time. | |
400 | Duration.Exceed | Duration between StartTime and EndTime is too long. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.