V
V
Vitaliy O2018-07-10 02:43:31
Django
Vitaliy O, 2018-07-10 02:43:31

Video chat in Django?

It is planned to implement a webcam site with completely similar functionality. I have experience in Django development. I googled a sea of ​​information in a few days and, as a result ... almost drowned. In the course of googling, several aspects emerged: 1 - video chats are made on asynchronous servers (and parallel), 2 - as far as I could figure out, it would be advisable to use webRTC.
I ask for help from those who know and have experience in this area, to deal with the topic:
Is it necessary to use an asynchronous (or parallel) server for my purpose, or can I write everything in Django in its synchronous style, and what does this promise me? (I would like specific examples. I don’t think there will be a large number of database requests, video recording is not planned. A person registers, enters the room, and watches the translation process, interacts with javascriptom, html, css.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Tikhonov, 2018-07-10
@Vital_O

For video chats, the server is required to:
* transfer huge amounts of data (compared to HTML)
* with minimal delay
Therefore, the server part is wild hardcore.
Or the second option, when the connection is established between the participants directly (P2P), and all the server-side game is transferred to JS, in terms of handling network errors, codec errors, and this whole P2P.
On habré there are guys who ate a dog , they have a free level of using the SDK.
And Django really comes in handy, doing registration, rooms-users-that's all.

S
Segey K., 2018-07-10
@maram4ik

I made a video chat using WebRTC, I used django + channels on the server in order to establish a P2P connection (via webSocket).
No hard core, the main thing is to understand the order of messages for installing P2P (at least I had the most difficulties in this place).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question