问题
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