Chat with the camera directly in JavaScript

Is it possible to communicate with the camera directly in pure JavaScript (no jQuery library)?

If so, what is the simplest clean javascript code for this?

+4
source share
3 answers

getUserMedia is available in pre-builds of all browsers.

How do I access navigator.getUserMedia ()?

+3
source

It is not possible to do this using pure Javascript (I think it will be possible soon), but I know that this can be done using Flash or Java applets.

0
source

Impossible on client-side JavaScript with any technology that I know of. It would be a security violation to allow this. You will need to use Flash, Java, Silverlight or another browser plugin. However, you can interact with the Flash object using JavaScript.

Here is a good tutorial on using webcams in Flash / AS3 here: http://theflashstudioblog.blogspot.com/2010/10/capturing-webcam-input-with.html

-one
source

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


All Articles