调用前置摄像头问题
发布于 5 年前 作者 wren 7650 次浏览 来自 问答

<camera device-position=“front” flash=“off” binderror=“error” style=“width: 100%; height: 300px;”></camera>

设置front无效,如何正确调用前置摄像头?

2 回复

back是主摄像头,我要直接显示前置摄像头拍人脸。

<camera device-position="back" flash="off" binderror="error" style="width: 100%; height: 300px;"></camera><button type="primary" bindtap="takePhoto">拍照</button><view>预览</view><image mode="widthFix" src="{{src}}"></image>
回到顶部