Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

Camera control in HTML 5

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you think javascript or html5 will ever some how be able to access the iphone ios for the lower level stuff like camera control?
 
Author
Posts: 26
MySQL Database PHP
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. It is in the interests of Apple, Google and other smartphone makers to provide APIs to their device drivers so that others can write apps, however, I don't think that such features will be specifically incorporated into the HTML5 specs.

Let me rephrase and narrow your question with an example:

Is it possible to build a web page using HTML and JavaScript that, upon detecting that your browser is running on a device equipped with a camera, will enable the user to take a picture as an alternative to uploading an image file?

I don't know the answer to this question. I've not had a chance yet to explore writing smartphone apps in HTML and JS so I don't know the details of how Google Goggles, for example, controls the camera. Does anyone know what Goggles is written in?

This does bring up the distinctions between web pages and apps. An app uses all the technologies of a web site but packages it to run independently (no browser required) on a target device. Also, an app asks for permission to connect to your device's camera when you install it. Do we really want a web page to be able to snap a photo without first asking permission? Suppose that the camera is accessed not by code under the control of the site's webmaster but from code embedded in a ad served up by a third party service?

Smile and say "Cheese".

Larry
 
Good night. Drive safely. Here's a tiny ad for the road:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic