Domain name for API request: iss.intl.tencentcloudapi.com.
This API is used to obtain the local device recording URL address.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: PlayRecord. |
| Version | Yes | String | Common Params. The value used for this API: 2023-05-17. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| ChannelId | Yes | String | Channel ID (obtain from the DescribeDeviceChannel API) |
| Start | Yes | Integer | Start time. |
| End | Yes | Integer | End time. |
| StreamType | No | Integer | Stream type (1: main stream; 2: sub-stream (not allowed to be delivered at the same time as Resolution)) |
| Resolution | No | String | Resolution (1: QCIF; 2: CIF; 3: 4CIF; 4: D1; 5: 720P; 6: 1080P/I; custom 19201080, etc. (device support required) (not allowed to be delivered at the same time as StreamType)) |
| IsInternal | No | Boolean | Whether it is a private network |
| Parameter Name | Type | Description |
|---|---|---|
| Data | PlayRecordData | Returned result |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: iss.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: PlayRecord
<Common request parameters>
{
"ChannelId": "12345678-abcd-efgh-ijkl-1234567890ab",
"Start": 1685611685,
"End": 1685611785
}
{
"Response": {
"Data": {
"Flv": "https://test.com.cn/live/12345678-abcd-efgh-ijkl-1234567890ab@aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee.live.flv?start=1685611685&end=1685611785"
},
"RequestId": "ba6d7b2e-7ff0-43b2-9f33-56793eee0de7"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InvalidParameterValue | Invalid parameter value |
| InvalidParameterValue.EndTimeZero | End time cannot be empty. |
| InvalidParameterValue.InvalidChannelId | Invalid channel ID |
| InvalidParameterValue.StartOverEndTime | Start time cannot be greater than end time. |
| InvalidParameterValue.StartOverNowTime | Start time cannot be greater than the current time. |
| InvalidParameterValue.StartTimeGreaterThanOrEqualEndTime | Start time cannot be greater than or equal to end time. |
| InvalidParameterValue.StartTimeZero | Start time cannot be empty. |
| InvalidParameterValue.UnSupportedAccessType | Unsupported access type |
| ResourceNotFound | Resource does not exist. |
| UnsupportedOperation.StreamTypeOrResolution | StreamType and Resolution parameters are not supported to be delivered simultaneously. |
피드백