小程序里面现有打开摄像头的方式有两种:
1、API调用,这个API可以设置直接打开相机,但不能打开的时候默认为前置摄像头。
wx.chooseImage({
count: 1,
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
success (res) {
// tempFileP
小程序里面现有打开摄像头的方式有两种:
1、API调用,这个API可以设置直接打开相机,但不能打开的时候默认为前置摄像头。
wx.chooseImage({
count: 1,
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
success (res) {
// tempFileP