代码拉取完成,页面将自动刷新
【模块名_概率】简要描述:
【环境信息】:
在API11上调用都返回失败。
HarmonyOS NEXT DP2 (2.0.0.72)
【预置条件】:
【测试步骤】:
let getLocalDirPath = this.context.tempDir+"/";
let filePathOne = getLocalDirPath + "VID_2024-04-24 11-19-25.mp4";
let filePathTwo = getLocalDirPath + "VID_2024-04-24 11-21-26.mp4";
let outMP4 = getLocalDirPath + "mergeout.mp4";
let callBack: ICallBack = {
callBackResult(code: number) {
// code 1
if (code == 0) {
AlertDialog.show({ message: '执行成功' })
}
else {
AlertDialog.show({ message: '执行失败' })
}
}
}
MP4Parser.videoMerge(filePathOne, filePathTwo, outMP4, callBack);
直接执行指令也失败:
const localDirPath = this.context.cacheDir + "/";
const sourceMP4 = path;
const destPath: string = localDirPath + "out.mp4";
const cmd = `ffmpeg -y -i "${sourceMP4}" -c copy "${destPath}"`;
Log.d(TAG, 'cmd: ' + cmd)
MP4Parser.ffmpegCmd(cmd, {
callBackResult(code: number) {
Log.d(TAG, 'callBackResult: ' + code)
// code 1
}
});
【预期结果】:
成功
【实际结果】:
code 是 1
【恢复手段】:
无
【出现概率】:问题出现次数/实际测试次数
100%
【定位信息】:
看不到报错,是否可以输出详细的报错?