Video Streaming using Django-Flask Communication over TCP


  1. Create 2 servers, one in django and another in flask (eg: django on 9000 port and flask on 8000 port)
  2. 2. User should be able to select a video file at flask server which is streamed to django server over websocket channels.
  3. 3. User should be able to open multiple channels to stream multiple videos simultaneously (like different chat windows)


Created two servers for Django and Flask respectively. Created the Flask server in AWS ec2 server and the setup looked like follows. the link for the same is as:

The Django server was created on platform and the link for the server is given as: The template came out to be as follows.

The video stream selected at one server could be seen at the other end as an output. Real life applications of such a program would act as a way of sharing videos and streaming on a collaborative platform. The interface looks as follows

The codes of the same will be available at:

A screen record illustration is available at:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store