Skip to content

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

@iambool

Description

@iambool

问题描述

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))
}

Metadata

Metadata

Assignees

Labels

P-2Medium, minor/patchbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions