RecorderInfo
录制文件信息。
ArkTS
export class RecorderInfo {
public fileName: string;
public durationMs: number;
public fileSize: number;
public constructor(fileName: string, durationMs: number, fileSize: number) {
this.fileName = fileName;
this.durationMs = durationMs;
this.fileSize = fileSize;
}
}
fileName
录制文件的绝对存储路径。
durationMs
录制文件的时长,单位为毫秒。
fileSize
录制文件的大小,单位为字节。