Javascript API for IOS Iphone 3G for access to the camera

Is there a way to access iPhone 3G cameras through javascript to capture a photo, and then use that photo in HTML POST? I came across an API called PhoneGap, but from the search here it is only mentioned for IPhone 4. I was hoping to find something that would work on 3G and 3GS models.

+3
source share
6 answers

Although this is an old question, I wanted to add that this feature is suitable for 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 .

, .

API- - , !

+1

Phonegap - , iPhone.

: http://www.phonegap.com/features

+3

, . git repo - iOS - https://github.com/egghaus/iOSWebCamera

sinatra.

+1

API PhoneGap, IPhone 4. -, 3G 3GS.

PhoneGap 3G 3GS.

+1

IO6 :

<input type="file">

.

+1

No, there is no access to the camera through JavaScript. You must use the UIWebView delegate to interact with the user, and then call the UIImagePickerController callbacks in it

0
source

Source: https://habr.com/ru/post/1787860/


All Articles