Queries the recordings of a live stream.
Usage notes
Obtain the main streaming domain, and then call this operation to query the recordings of the live stream.
QPS limit
You can call this operation up to 50 times 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 limit on an API operation in ApsaraVideo Live.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeLiveStreamRecordContent | The operation that you want to perform. Set the value to DescribeLiveStreamRecordContent. |
DomainName | String | Yes | example.com | The main streaming domain. |
AppName | String | Yes | liveApp**** | The name of the application to which the live stream belongs. |
StreamName | String | Yes | liveStream**** | The name of the live stream. |
StartTime | String | Yes | 2017-12-21T08:00:00Z | The beginning of the time range to query. You can only query the recordings in the last 6 months. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
EndTime | String | Yes | 2017-12-22T08:00:00Z | The end of the time range to query. The time range that is specified by the StartTime and EndTime parameters cannot exceed 4 days. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 62136AE6-7793-45ED-B14A-60D19A9486D3 | The ID of the request. |
RecordContentInfoList | Array of RecordContentInfo | The recordings. |
|
RecordContentInfo | |||
EndTime | String | 2015-12-01T07:46:00Z | The end of the time range for which the recordings were queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
StartTime | String | 2015-12-01T07:36:00Z | The beginning of the time range for which the recordings were queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
Duration | Float | 10 | The recording length. Unit: seconds. |
OssBucket | String | liveBucket**** | The name of the Object Storage Service (OSS) bucket. |
OssObjectPrefix | String | record/{Date}/{UnixTimestamp}_{Sequence} | The naming rule of recordings in OSS. |
OssEndpoint | String | cn-oss-****.aliyuncs.com | The endpoint of the OSS bucket. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=DescribeLiveStreamRecordContent
&AppName=liveApp****
&DomainName=example.com
&EndTime=2017-12-22T08:00:00Z
&StartTime=2017-12-21T08:00:00Z
&StreamName=liveStream****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeLiveStreamRecordContentResponse>
<RequestId>62136AE6-7793-45ED-B14A-60D19A9486D3</RequestId>
<RecordContentInfoList>
<RecordContentInfo>
<EndTime>2015-12-01T07:46:00Z</EndTime>
<OssEndpoint>cn-oss-****.aliyuncs.com</OssEndpoint>
<StartTime>2015-12-01T07:36:00Z</StartTime>
<OssBucket>liveBucket****</OssBucket>
<Duration>10</Duration>
<OssObjectPrefix>record/{Date}/{UnixTimestamp}_{Sequence}</OssObjectPrefix>
</RecordContentInfo>
</RecordContentInfoList>
</DescribeLiveStreamRecordContentResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DescribeLiveStreamRecordContentResponse" : {
"RequestId" : "62136AE6-7793-45ED-B14A-60D19A9486D3",
"RecordContentInfoList" : {
"RecordContentInfo" : {
"EndTime" : "2015-12-01T07:46:00Z",
"OssEndpoint" : "cn-oss-****.aliyuncs.com",
"StartTime" : "2015-12-01T07:36:00Z",
"OssBucket" : "liveBucket****",
"Duration" : 10,
"OssObjectPrefix" : "record/{Date}/{UnixTimestamp}_{Sequence}"
}
}
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The error message returned because the format of the start time is invalid. Check whether the value of the StartTime parameter is valid. |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The error message returned because the format of the end time is invalid. Check whether the value of the EndTime parameter is valid. |
400 | InvalidEndTime.Mismatch | Specified end time does not math the specified start time. | The error message returned because the end time does not match the start time. Check whether the value of the EndTime parameter matches. |
For a list of error codes, see Service error codes.