All Products
Search
Document Center

:DescribeLiveStreamCount

更新時間:Jun 05, 2024

Queries the numbers of online source streams and transcoded streams.

Usage notes

Obtain the main streaming domain, and then call this operation to query the numbers of online source streams and transcoded streams. The streams that are returned by calling this operation are in the H.264 or H.265 format.

QPS limit

You can call this operation only once per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

Debugging

OpenAPI Explorer automatically generates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes DescribeLiveStreamCount

The operation that you want to perform. Set the value to DescribeLiveStreamCount.

DomainName String Yes example.com

The main streaming domain.

Response parameters

Parameter

Type

Example

Description

RequestId String FCFFE4A4-F34F-4EEF-B401-36A01689AFBC

The ID of the request.

StreamCountInfos Array of StreamCountInfo

The statistics of the live streams.

StreamCountInfo
Type String raw

The type of the live stream. Valid values:

  • raw: source streams.
  • trans: transcoded streams.
Count Long 3

The number of online streams.

Limit Long 10

The maximum number of concurrent ingest streams. This parameter is available only for users in the whitelist.

StreamCountDetails Array of StreamCountDetail

The information about the live streams.

StreamCountDetail
VideoDataRate Long 390

The video bitrate. This parameter is available only for transcoded streams.

Format String h264

The video encoding format. Valid values:

  • h264
  • h265
Count Long 2

The number of online streams.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=DescribeLiveStreamCount
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeLiveStreamCountResponse>
    <RequestId>FCFFE4A4-F34F-4EEF-B401-36A01689AFBC</RequestId>
    <StreamCountInfos>
        <Type>raw</Type>
        <Count>3</Count>
        <Limit>10</Limit>
        <StreamCountDetails>
            <VideoDataRate>390</VideoDataRate>
            <Format>h264</Format>
            <Count>2</Count>
        </StreamCountDetails>
    </StreamCountInfos>
</DescribeLiveStreamCountResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "FCFFE4A4-F34F-4EEF-B401-36A01689AFBC",
  "StreamCountInfos" : [ {
    "Type" : "raw",
    "Count" : 3,
    "Limit" : 10,
    "StreamCountDetails" : [ {
      "VideoDataRate" : 390,
      "Format" : "h264",
      "Count" : 2
    } ]
  } ]
}

Error codes

For a list of error codes, see Service error codes.