相机已经能显示画面,通过capture方法拍下照片,报错:
Failed to capture the photo, error code: 7400104.
function capture(photoOutput: camera.PhotoOutput): void {
photoOutput.capture((err: BusinessError) => {
if (err) {
console.error(`Failed to capture the photo, error code: ${err.code}.`);
return;
}
console.info('Callback invoked to indicate the photo capture request success.');
});
}
示例参考: