Creating Live Streaming Video Chat App without voice using cv2 module of Python

mahima gautam
3 min readJun 12, 2021

--

🎉 Team Task 3Summer Program 2021 at LinuxWorld Informatics Pvt Ltd under the mentorship of Vimal Daga Sir.

Hello connections

I have tried Creating Live Streaming Video Chat App without voice using cv2 module of Python. Below is the github link

Github link: https://github.com/Mahima-gi/video-chat-aap-without-voice-using-cv2-module-.git

Task Description: 📄

Create your own chat servers, and establish a network to transfer data using socket programing by creating both server and client machines as sender and receiver.

Few things to know :

What is a Server?

A server is either a program, a computer, or a device that is devoted to managing network resources. There are various types of servers such as database servers, network servers, print servers, etc.

What is a Client?

A client is either a computer or software that receives information or services from the server. In a client-server module, clients requests services from servers. The best example is a web browser such as Google Chrome, Firefox, etc.

Sockets

Sockets are the backbone of networking. They make the transfer of information possible between two different programs or devices. For example, when we open up a browser, we as clients are creating a connection to the server for the transfer of information. A single network will have two sockets, one for each communicating device or program. These sockets are a combination of an IP address and a Port. A single device can have ’n’ number of sockets based on the port number that is being used.

Some of the common methods,

socket(): This method is used to create the socket and takes two arguments first is a family or domain like AF_INET (IPv4) or INET6 (IPv6) and the second defines the type of sockets like SOCK_STREAM ( TCP ) or SOCK_DGRAM ( UDP ).

bind(): This method is used to bind your socket with a specific host and port which will be passed as an argument to this function and that means your socket will be sitting at a specific location where the client socket can send its data.

recvfrom(): This method can be used with a UDP server to receive data from a UDP client or it can be used with a UDP client to receive data from a UDP server. It accepts a positional parameter called bufsize which is the number of bytes to be read from the UDP socket. It returns a byte object read from a UDP socket and the address of the client socket as a tuple.

sendto(): It is a method of Python’s socket class that is used to send datagrams to a UDP socket.

Socket Programming

Socket programming is a way of connecting two nodes on a network to communicate with each other.

UDP:

User Datagram Protocol (UDP) is a Transport Layer protocol. It is a part of the Internet Protocol suite, referred to as UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol.

Features of UDP

· Supports bandwidth-intensive applications that tolerate packet loss

· Less delay

· It sends the bulk quantity of packets.

· Possibility of data loss

· Allows small transaction (DNS lookup)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response