用于在iOS上读取实时摄像头流的getUserMedia()的替代方案? [英] Alternative to getUserMedia() for reading live camera stream on iOS?

查看:3592
本文介绍了用于在iOS上读取实时摄像头流的getUserMedia()的替代方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用QuaggaJS构建移动条形码扫描仪,可直接从设备的相机流中读取条形码。在桌面/ Android上工作正常,但在iOS上根本不起作用。

We are building a mobile barcode-scanner using QuaggaJS that reads barcodes directly from the device's camera stream. Works fine on desktop/Android, but doesn't work at all on iOS.

从最初的研究中,我发现iOS根本不支持WebRTC / getUserMedia 通过Safari或iOS Chrome(下面的相关链接),这是QuaggaJS用来读取相机流的。

From initial research, I've found that iOS simply does not support WebRTC/getUserMedia through Safari or iOS Chrome (related links below), which is what QuaggaJS uses to read the camera stream.

I还见过关于在iOS上捕获静态图像的这个问题,但提供的答案仅为用于捕获静止图像,而不是用于实时读取流。

I've also seen this question about capturing a still image on iOS, but the answer provided is only for capturing a still image, not for reading the stream real-time.

我的问题 - 是否还有其他方法可以从中获取流iOS相机?也许QuaggaJS以外的替代库不使用 getUserMedia ?我不是很精通Javascript,所以我不确定是否有可能的方法来访问除 getUserMedia 之外的相机流。

My question - is there any other way to grab the stream from an iOS camera? Perhaps an alternate library other than QuaggaJS that does not use getUserMedia? I am not well-versed in Javascript, so I am not sure if there even is a possible way to access the camera stream other than getUserMedia.

这里的否是可接受的答案;我只是在寻找更有经验的人来提供指导。

A "no" is an acceptable answer here; I'm simply looking for someone more experienced to provide guidance.

附录/相关链接:

navigator.getUserMedia alternative API iOS Safari手机浏览器?

https://www.quora.com/Why-is-navigator-getUserMedia-not-supported-in-Safari

https://bloggeek.me/webrtc-apple-or-microsoft/

HTML5:getUserMedia iOS问题?

推荐答案

2017年更新:Apple刚刚宣布将最终支持getUserMedia iOS11

2017 update: Apple just announced that getUserMedia will finally be supported in iOS11.

这篇关于用于在iOS上读取实时摄像头流的getUserMedia()的替代方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆