闪退提交
This commit is contained in:
parent
670d6d20af
commit
c796add419
@ -219,7 +219,7 @@ export async function takePhoto(param, context, dir, flag = 1, callback?) {
|
|||||||
// var snapResult = rtsp_server.getVideoSnapshot(context, video_uri, '', dir);
|
// var snapResult = rtsp_server.getVideoSnapshot(context, video_uri, '', dir);
|
||||||
if (flag == 0) {
|
if (flag == 0) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
rtsp_server.detectVideoSnapshotSize(video_uri, fileName, (err, snapResult) => {
|
rtsp_server.detectVideoSnapshotSize(video_uri, fileName, false,(err, snapResult) => {
|
||||||
console.log("baohaowen_detectLoop round end size1:" + snapResult.fileSize);
|
console.log("baohaowen_detectLoop round end size1:" + snapResult.fileSize);
|
||||||
callback({ fileSize: snapResult.fileSize, errorCode: snapResult.errorCode })
|
callback({ fileSize: snapResult.fileSize, errorCode: snapResult.errorCode })
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user