N
N
Nik2017-08-19 16:25:18
Android
Nik, 2017-08-19 16:25:18

Is it possible to make a request to a cell phone camera from a web site?

Is it possible to request access to the camera from a visitor visiting the site from a mobile device from a regular site (not a mobile application) and get a callback? For example, I would like to implement the ability to read the barcode directly by the camera, and not by entering it manually, something like this - https://developers.google.com/vision/android/barco... or to simplify the input of bank card data and make it possible to recognize them with the help of cards (as, for example, in the mobile applications of some banks, uber, etc.). I would appreciate links.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Exploding, 2017-08-19
@Exploding

Well, for example.
https://ruseller.com/lessons.php?rub=32&id=2756
And not necessarily mobile.
To the laptop camera, webcam ... Che still happens there))
In general, to any available camera on the device. The only thing I have not dug is whether it is possible to switch between cameras if there are several of them. For example, in the phone front and back. But by default, I started the back (main) one.
But in any case (except for flash), access to the camera will be possible only if the
UDP https protocol is available. Who cares https://developer.mozilla.org/en-US/docs/Web/API/N...
And you can twirl there and turn the cameras and about the restrictions everything is written in red and blue, take it and read it, but no, you have to guess on coffee grounds))!! (this is me about myself)
But I don’t need it right now, and there are a lot of bukaf there, so figure it out :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question