I am trying to create a face detection web application written in django. The app works this way.
I don't think this is a good approach for streaming a video via server. Why even you want to send video frames to server when webrtc directly offers p2p connection.All you need a socket library to manage the user and connect them.You can pass random generated roo_id to django channel for creating rooms.I will suggest you if you are good at nodejs go for socket.io library as very less resources and documentation available on django channel with webrtc.
yes, you can send video from javascript to python on your server, however, You can not use Ajax or web socket to send frames.
This is how you can do it.
Let me know if you need more help.