Sending webRTC video stream to server with django channels

◇◆丶佛笑我妖孽 提交于 2019-12-03 20:40:49

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.

  1. Create WebRTC session at client-end using javascript
  2. Run webrtc at your server-end using native code.
  3. Now create p2p session between client and server by exchanging SDPs. Note that you will need video capture device at server end else there won't be video session. If not, you can use fake video capturer at server end.
  4. You can then interface your python code with webrtc instance running on your server.

Let me know if you need more help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!