---
name: "albumVideoFileDetail"
mode: "kit"
versionRequirements:
  - { name: "@tuya-miniapp/cloud-api", version: "1.0.5" }
---

## albumVideoFileDetail

> [VERSION] @tuya-miniapp/cloud-api >= 1.0.5

### 描述

时光相册录像文件详情获取

### 参数

`Params`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `params` | `IAlbumVideoFileDetailReq` | 是 | - | 请求体 |

### 引用对象

##### `interface` IAlbumVideoFileDetailReq

| 属性 | 类型 | 描述 |
| --- | --- | --- |
| `stockId` | `number` | 库存 id |
| `gid` | `string` | 家庭 id |
| `timeAlbumId` | `number` | 相册 id |
| `timeAlbumRecordId` | `number` | 时光相册文件记录 ID（来源 m.ipc.time.album.video.file.list 返回的 id） |

##### `interface` IFileUrl

| 属性 | 类型 | 描述 |
| --- | --- | --- |
| `fileUrl` | `string` | 文件路径 |
| `fileName` | `string` | 文件名称（自定义添加，非接口返回） |


### 示例代码

#### 请求示例

```typescript
import { albumVideoFileDetail } from '@tuya-miniapp/cloud-api';

albumVideoFileDetail({
  stockId: 1,
  gid: '194137',
  timeAlbumId: 100,
  timeAlbumRecordId: 10001,
})
  .then((row) => console.log(row))
  .catch(console.error);
```

#### 返回示例

```json
{
  "id": 10001,
  "captureTime": 1700000000000,
  "type": 1,
  "coverInfo": { "fileUrl": "https://images.example.com/thumb.jpg" },
  "mediaInfo": { "fileUrl": "https://videos.example.com/clip.mp4" }
}
```
