Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CameraContext对象调用takePhoto有较大概率失败 #97

Open
iambool opened this issue Mar 12, 2021 · 0 comments
Open

CameraContext对象调用takePhoto有较大概率失败 #97

iambool opened this issue Mar 12, 2021 · 0 comments
Assignees
Labels
bug Something isn't working P-2 Medium, minor/patch

Comments

@iambool
Copy link

iambool commented Mar 12, 2021

问题描述

createCameraContext 创建的CameraContext对象,调用takePhoto有较大概率失败,严重影响用户体验

期望

调用takePhoto能成功

复现代码

try{
  this.cameraContext.takePhoto({
    quality: 'high',
    success: res => {
      const {tempImagePath} = res;
      this.setState({
        imageSrc: tempImagePath
      });
    },
    fail: res => alert('拍照失败:'+JSON.stringify(res))
  })
}catch(err){
  alert('出错:'+JSON.stringify(err))
}
@iambool iambool added bug Something isn't working P-2 Medium, minor/patch labels Mar 12, 2021
@nickyefei nickyefei self-assigned this Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P-2 Medium, minor/patch
Projects
None yet
Development

No branches or pull requests

2 participants