Queries the recordings of a live stream.

Debugging

OpenAPI Explorer automatically calculates 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 DescribeLiveStreamRecordContent

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

AppName String Yes testApp

The name of the application to which the live stream belongs.

DomainName String Yes www.yourdomain.com

The main streaming domain.

EndTime String Yes 2017-12-22T08:00:00Z

The end of the time range to query. The duration specified by the StartTime parameter and the EndTime parameter cannot exceed four days. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

StartTime String Yes 2017-12-21T08:00:00Z

The beginning of the time range to query. You can only query the records within the last six months. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

StreamName String Yes testStream

The name of the live stream.

Response parameters

Parameter Type Example Description
RecordContentInfoList Array of RecordContentInfo

The recordings.

RecordContentInfo
OssEndpoint String oss-cn-shanghai.aliyuncs.com

The endpoint of Object Storage Service (OSS).

OssBucket String test123

The name of the OSS bucket in which the recording is stored.

OssObjectPrefix String record/{Date}/{UnixTimestamp}_{Sequence}

The naming rule of recordings in OSS.

StartTime String 2015-12-01T07:36:00Z

The start time of the recording. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

EndTime String 2015-12-01T07:46:00Z

The end time of the recording. 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.

RequestId String 62136AE6-7793-45ED-B14A-60D19A9486D3

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com/? Action=DescribeLiveStreamRecordContent
&AppName=testApp
&DomainName=www.yourdomain.com
&EndTime=2017-12-22T08:00:00Z
&StartTime=2017-12-21T08:00:00Z
&StreamName=testStream
&<Common request parameters>

Sample success responses

XML format

<DescribeLiveStreamRecordContentResponse>
      <RecordContentInfoList>
            <RecordContentInfo>
                  <Duration>14638</Duration>
                  <EndTime>2016-05-25T09:41:09Z</EndTime>
                  <OssBucket>livevideo-test</OssBucket>
                  <OssEndpoint>oss-cn-hangzhou.aliyuncs.com</OssEndpoint>
                  <OssObjectPrefix>record/{Date}/{UnixTimestamp}_{Sequence}</OssObjectPrefix>
                  <StartTime>2016-05-25T05:37:11Z</StartTime>
            </RecordContentInfo>
      </RecordContentInfoList>
      <RequestId>62136AE6-7793-45ED-B14A-60D19A9486D3</RequestId>
</DescribeLiveStreamRecordContentResponse>

JSON format

{
    "RecordContentInfoList":{
        "RecordContentInfo":[{
            "Duration":14638.0,
            "EndTime":"2016-05-25T09:41:09Z",
            "OssBucket":"livevideo-test",
            "OssEndpoint":"oss-cn-hangzhou.aliyuncs.com",
            "OssObjectPrefix":"record/{Date}/{UnixTimestamp}_{Sequence}",
            "StartTime":"2016-05-25T05:37:11Z"
        }]
    },
    "RequestId":"62136AE6-7793-45ED-B14A-60D19A9486D3"
}

Error codes

HTTP status code 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 correct.
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 correct.
400 InvalidEndTime.Mismatch Specified end time does not math the specified start time. The error message returned because the end time is earlier than the start time. Check whether the values of the StartTime and EndTime parameters are correct.

For a list of error codes, visit the API Error Center.