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.
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- - , !
Phonegap - , iPhone.
: http://www.phonegap.com/features
, . git repo - iOS - https://github.com/egghaus/iOSWebCamera
sinatra.
API PhoneGap, IPhone 4. -, 3G 3GS.
PhoneGap 3G 3GS.
IO6 :
<input type="file">
.
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
Source: https://habr.com/ru/post/1787860/More articles:Problems with Box2d As3 Listener - flash@ font-face does not work in Firefox - htmlDoes the Windows Phone 7 emulator create a watermark? - windows-7Filtering / iterating through very large lists in python - pythonHow to assign a transaction with EF4 CodeFirst CTP5 without using TransactionScopes? - c #Parse SQLite ALTER, CREATE & UPDATE - javascriptParsing SQL CREATE TABLE using jQuery? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1787863/when-my-project-is-released-should-i-commit-outputs-to-svn&usg=ALkJrhigukB-_9Qrug0t-X10tagk1jRNzQArithmetic rules of data type in language c - cControlling the rotation of a 3D object using the touch screen in openGL - androidAll Articles