相关代码:
< camera device-position = "{{ camera }}" flash = "off" binderror = "error" class = "camera" > < cover-view class = "camera-cover" > < cover-image class = "camera-cover-img" src = "../../images/face/camera-cover.png" /> </ cover-view > </ camera > |
场景描述:拍摄人脸照片,默认为前置摄像头,自定义摄像区域大小和位置,添加头像形状遮罩图片
测试问题:
安卓手机默认前置摄像头无效,IOS上正常;
安卓手机:小米5,微信版本6.7.0,小程序基础库版本:2.2.2
已查看了相关问题:
- [安卓手机camera组件无法调用前置摄像头-4.26](https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=0008a215d80cc80bbaa6ef10056000&highline=camera%20IOS)
IOS前置摄像头取景位置不正常
- [ios下设置camera大小后,取景角度和距离不正常-4.21](https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=000ca04a604fc8da50a60837a51000&highline=camera%20IOS)
- [camera组件拍照自定义大小拍出的图片ios会被裁剪](https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=988a02ff8a48857a422222f817544466&highline=camera%20IOS)
IOS 首次进入camera页面正常,第二次进入,速度特别慢,大约需要10s;另外,进入页面后,camera的cover-view内容不显示,其他区域的按钮点击也无反应;有时候点击后会小程序会自动退出;相关问题:
- [camera上的cover-view无法点击-7.03](https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=000a4ea129c78866140734f1e5bc00&highline=camera%20IOS)
不确定点击无反应跟这个问题是否一样,我这边其他点击区域跟cover-view是分开的,并不重叠;
- [camera组件导致微信崩溃-7.14](https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=00044a5a2cc50093ef073cbb55b800&highline=camera%20IOS)