Skip to content

根据条件搜索录音文件

方法名

getRecorderFiles

用法

  • 用法如下:
    js
    module.getRecorderFiles({
        //开始时间
        startTime: 1746633600000,
        //结束时间
        endTime: 1746719999000
    }, res => {
      this.writeLog(JSON.stringify(res))
    });
  • 参数说明
    参数名参数类型是否必填默认值参数描述
    startTimeInteger0开始时间,单位:毫秒
    endTimeInteger当前时间戳结束时间,单位:毫秒

回调

  • 示例
    json
    {
      "data": {
        "files": [{
            "lastModifiedTimeDate":"2024-01-26 15:07:40"
            "time": 1706252857000,
            "lastModifiedTime": 1706252860000
            "timeDate":"2024-01-26 15:07:37"
            "path":"/storage/emulated/0/Sounds/CallRecord/178 0338 5822 20240126150737.m4a"
        }]
      },
      "message": "",
      "code": 0
    }
  • 回调说明:
    参数名参数类型参数描述
    messageString消息提示
    dataObject数据对象
    data.filesArray录音文件列表
    data.files.lastModifiedTimeDateString最后修改时间的格式化数据
    data.files.timeInteger添加时间,时间戳
    data.files.lastModifiedTimeInteger最后修改时间,时间戳
    data.files.timeDateString添加时间的格式化数据
    data.files.pathString文件路径
    codeInteger返回类型,0.成功,其他:失败