【发布时间】:2019-05-23 15:19:41
【问题描述】:
我正在尝试做一个条码扫描器应用程序,我需要使用 getUserMedia 来扫描条码并且效果很好。现在我正在尝试让这个应用程序在 IOS 上可用,但是当我运行它时它会告诉我这个:
getUserMedia is not defined
我尝试使用 webRTC-adapter 但它并没有改变我的情况,我查看了手机的参数但它从未改变我的情况。
<script src="https://webrtc.github.io/adapter/adapter-latest.js" type="text/javascript"></script>
<script>
import adapter from 'webrtc-adapter'
[...]
</script>
我需要在我的 IOS 应用程序中包含相机的输出
【问题讨论】:
标签: ios cordova getusermedia