收藏
回答

调用前置摄像头问题

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

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

回答关注问题邀请回答
收藏

2 个回答

  • 威振四海
    威振四海
    2018-03-28

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

    2018-03-28
    有用
    回复
  • 陈
    2018-03-28
    <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>


    2018-03-28
    有用
    回复
登录 后发表内容