user_SO
user_SO

Reputation: 51

Accessing phone features such as camera and phone using jquery mobile

Is it possible to access mobile features such as camera,sensors etc from a html page that is designed using jquery mobile.

In other words is it possible to use mobile features using jquery mobile?

That make it obvious that I will be viewing the page in mobile phone.

Upvotes: 2

Views: 7710

Answers (1)

Useless Code
Useless Code

Reputation: 12402

jQuery Mobile has an orientationchange event that fires when a mobile device switches between a vertical or horizontal orientation.

jQuery Mobile does not have methods for accessing the camera, gyroscopes or other sensors.

There are some upcoming standards that will allow you to access the camera and other sensors but support for them in mobile browsers will not be widespread for quite some time. The mobile versions of Firefox and Chrome, and possibly mobile Safari, should have decent support for most of these APIs but most other mobile browsers probably won't.

Some resources:

Upvotes: 3

Related Questions