DEV Community

Cover image for Building a Video Calling App using Python & Flask
Yash Makan
Yash Makan

Posted on

21 2

Building a Video Calling App using Python & Flask

flask_webrtc_youtube

================

A basic WebRTC video audio chat app made using python Flask.

Create and join video chat rooms. The users connects to each other in a peer to peer mesh network using WebRTC. They share their audio and video directly with each other without going through a centralized server. However, a centralized server is needed to initiate the connections at first using a process called signaling. This, signaling server is made using Flask in python and data is shared between server and clients using SocketIO.

For demo & explaination visit: https://youtu.be/ZvG1-s7QmLs

Source code

Source Code is Available in the description box below in the video. So do check it out...

Installation

To run this on your machine, install the following:

Requirements:

  • python 3.x
  • Flask
  • Flask-SocketIO

Install requirements using pip:



pip install -r requirements.txt


Enter fullscreen mode Exit fullscreen mode

To start a server on localhost:



python server.py

Enter fullscreen mode Exit fullscreen mode




Subscribe For More

YouTube

Contact Me

Website: yashmakan.co.in

Twitter: @Yash_Makan

Contribute

buymeacoffee: @Here

Other Interesting Articles

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (3)

Collapse
 
vulcanwm profile image
Medea

Woah this is cool!

Collapse
 
yash_makan profile image
Yash Makan

Yeah! Thanks :)

Collapse
 
karfagen profile image
Sofiia Shevchuk • Edited

Useful post, thanks! Can I share your ideas in my article about video chat app development? With reference to you, of course.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay