Video Streaming using Django-Flask Communication over TCP

Django Flask Socket


  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:




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Unix Commands for beginners and QA Testers — START HERE!

How to create a Minesweeper game in CSS without JS

How to create button animation with Flare in Flutter? Part 1: Create your first animation!

Getting started with Selenium

How to connect to Tableau with Azure Resources — Part 2

The best package manager for macOS and a tutorial for Nix on macOS

Serious Java Programmer on cloud-native stack? Quarkus is here to help!

How to get OTA-8

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
Abhiroop Bas

Abhiroop Bas

More from Medium

Getting started with PostgreSQL as metastore for Airflow

Databases Explained

Primary Key vs. Foreign Keys

Creating Custom AMIs for use in AWS SageMaker Studio

Build and Deploy Machine Learning Pipelines on AWS EC2 using Flask, Docker, Kubernetes, Gunicorn…