navigator.getUserMedia alternative API for iOS safari mobile browser?

依然范特西╮ 提交于 2019-12-10 03:54:08

问题


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">

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

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


回答1:


Safari does not support WebRTC yet.

http://iswebrtcreadyyet.com/

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



来源:https://stackoverflow.com/questions/31294422/navigator-getusermedia-alternative-api-for-ios-safari-mobile-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!