XTiger
XTiger
  • 发布:2021-04-26 09:13
  • 更新:2021-04-26 09:46
  • 阅读:652

H5+ 怎么调用前置摄像头扫码?

分类:HTML5+

H5+ 怎么调用前置摄像头扫码?
现在只能调用后置摄像头,有没有办法可以调用前置摄像头?求各位大神指教!

2021-04-26 09:13 负责人:无 分享
已邀请:
chenli

chenli

plus.camera.getCamera(index)

index: ( Number ) 可选 要获取摄像头的索引值
指定要获取摄像头的索引值,1表示主摄像头,2表示辅摄像头。如果没有设置则使用系统默认主摄像头。

(详情参考plus.camera.getCamera使用文档)[https://www.html5plus.org/doc/zh_cn/camera.html#plus.camera.getCamera]

  • XTiger (作者)

    谢谢,但是这个是拍照用的,我需要扫二维码。plus.barcode.Barcode

    2021-04-26 09:51

  • 1***@qq.com

    回复 XTiger: 这个好了吗?

    2022-04-12 16:22

该问题目前已经被锁定, 无法添加新回复