albumVideoFileList(params: IAlbumVideoFileListReq)

版本要求:
@tuya-miniapp/cloud-api≥1.0.5

描述

时光相册录像文件列表获取

参数

参数类型必填说明
是请求体

返回值

类型:Promise<IAlbumVideoFileListRes>
total 与 list

引用对象

interfaceIAlbumVideoFileListRes
属性类型描述
totalnumber总条数
文件列表

合法值

IAlbumVideoFileListRes.list.type
值说明最低版本
0--
1--
2--

示例代码

请求示例

import { albumVideoFileList } from '@tuya-miniapp/cloud-api';

albumVideoFileList({
  stockId: 1,
  gid: '194137',
  timeAlbumId: 100,
  pageNum: 1,
  pageSize: 20,
})
  .then((res) => console.log(res))
  .catch(console.error);

返回示例

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