用于iOS Safari手机浏览器的navigator.getUserMedia替代API? [英] navigator.getUserMedia alternative API for iOS safari mobile browser?

查看:1053
本文介绍了用于iOS Safari手机浏览器的navigator.getUserMedia替代API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道下面的代码将从ios 6+ safari移动浏览器中捕获图像

I know with below code will capture a image from ios 6+ safari mobile browser

<input type="file" capture="camera" accept="image/*" id="cameraInput" name="cameraInput">

有没有其他方法可以使用html5 / JS从safari移动浏览器中捕获图像?

Is there any other way of capturing a image from safari mobile browser using html5/JS?

在iOS safari移动浏览器中是否有WebRTC MediaStream API的替代方案?

Is there any alternative for WebRTC MediaStream API in iOS safari mobile browser?

推荐答案

Safari尚不支持WebRTC。

Safari does not support WebRTC yet.

http://iswebrtcreadyyet.com /

要从iOS上的WebRTC开始,您可以浏览此演示 https://github.com/ISBX/apprtc-ios 。它与你正在寻找的并不完全相同。演示应用程序实现了视频聊天。但是获得图像

To start with WebRTC on iOS, you may explore this demo https://github.com/ISBX/apprtc-ios. It't not exactly the same as you're looking for. The demo app achieves video chat. But it should be trivial to get image

这篇关于用于iOS Safari手机浏览器的navigator.getUserMedia替代API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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