D
D
Dmitry2016-01-25 19:01:07
JavaScript
Dmitry, 2016-01-25 19:01:07

What technologies and methods are there for capturing video from a camera through a website?

Please tell me how it is possible to implement on the site a video recording from the camera of the user who visited the site.
In more detail: after authenticating on the site, the user should be able to access the "Record video" button, after pressing the button, the software part is launched which records the video stream from the device's camera (most often it is a tablet or smart phone) and puts it on the server.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Cheremisin, 2016-01-25
@leahch

In general, it works like this:
1) install a video server on the server
2) write an application for a browser, for example, in flash or using javascript, which opens the camera and transmits (publishes) the stream to the video server.
3) an application is written from the side of the video server or the video server itself is configured to record the stream from the user
4) the video server can also send this stream to a bunch of clients
Now about technologies. There are only two of them so far
RTMP - Adobe technology, built into the flash-plugin. There are a lot of video servers, from nginx + rtmp_module to red5, including a hundred or two commercial ones. Accordingly, the browser client will be written in flash. Doesn't work in all mobile browsers :-( Goodbye IOS...
www.webrtc.org- a new fashionable technology, not yet built into all browsers
There are not very many video servers, but here is a good example of an open server - www.kurento.org
do transcoding on the server.

D
Dark Hole, 2016-01-25
@abyrkov

Well... a bit of javascript magic and that's it. Could mrdoob

H
hbruser, 2016-02-04
@hbruser

Chrome, WebRTC (.webm)
This is how the recording of a WebRTC stream from the Chrome browser looks when using the Flashphoner server.
On the right, playback of the recorded webm file in VLC.
And this is an example with Flash, when the stream gives IE
On the browser, simple JavaScript + Jquery and API.
With iOS, you will need a special application for recording.
iOS browsers do not support WebRTC. Unless some Ericsson, but no one uses it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question