admin管理员组文章数量:1290266
Is there a way to access the iPhone 3G camera via JavaScript to capture a photo and then utilize this photo in an HTML POST? I came across an API called PhoneGap but from a search on here it only mentioned for the IPhone 4. I was hoping to find something that would work on the 3G and 3GS models.
Is there a way to access the iPhone 3G camera via JavaScript to capture a photo and then utilize this photo in an HTML POST? I came across an API called PhoneGap but from a search on here it only mentioned for the IPhone 4. I was hoping to find something that would work on the 3G and 3GS models.
Share Improve this question edited Jan 14, 2024 at 16:49 Brian Tompsett - 汤莱恩 5,89372 gold badges61 silver badges133 bronze badges asked Jan 26, 2011 at 2:43 Bestfoodnearme.Bestfoodnearme. 2914 silver badges11 bronze badges 06 Answers
Reset to default 3Phonegap is an easy solution, and it support camera access for all iPhones.
Supported features: http://www.phonegap./features
Although this is an old question, I wanted to add that this feature is ing to The Web and is already implemented in some browsers.
navigator.getMedia = (
navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);
There is a W3C Specification for getUserMedia.
Although this actually gets you video, you can then take a still image from that video stream.
There are lots of APIs ing to the browser - so good times ahead!
Yes, we wrote one last year. Try our git repo for iOS Web Camera — https://github./egghaus/iOSWebCamera
It posts through a sinatra app.
I came across an API called PhoneGap but from a search on here it only mentioned for the IPhone 4. I was hoping to find something that would work on the 3G and 3GS models.
PhoneGap does indeed work on 3G and 3GS.
Now, with IO6 you can use the input file type :
<input type=”file”>
directly in your form.
No, there is no way to access camera via JavaScript. You should use the UIWebView delegate to handle user interaction and then call the UIImagePickerController in it's callbacks
本文标签: Javascript API for IOS Iphone 3G for camera accessStack Overflow
版权声明:本文标题:Javascript API for IOS Iphone 3G for camera access - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741492753a2381698.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论