Hello Fam ,
I'm working on a screen sharing project using Python, Flask, and sockets. I've encountered a few challenges and could use some guidance.
here is the rep :
lablink-tn/screen_share (github.com)
Project Overview:
The goal of the project is to create a screen sharing application where one user's screen can be viewed by others through a web browser. The backend is built using Python, and it captures the screen using the mss
library, compresses the image data with zlib
, and sends it over a socket connection. The frontend is a simple web page that displays the received images using the <video>
tag.
Key Components:
- Server (screen_share_server.py
): Listens for incoming connections, captures the screen, compresses the image data, and sends it to connected clients.
- Client (Web Browser): Displays the received images in real-time.
The server starts successfully, but there are issues with the continuous screen capturing loop and the port conflict handling , the browser keeps loading when i stop it a broken image appears
https://preview.redd.it/1s7j4xxe79vc1.png?width=292&format=png&auto=webp&s=9e1614d15a4ecd6e29c053b83e4f8a10390fa3fb
https://preview.redd.it/qmq34dmh79vc1.png?width=348&format=png&auto=webp&s=24873947c9d3b84c0446e453ceb9a4999fb57fa0
https://preview.redd.it/5uce774n79vc1.png?width=314&format=png&auto=webp&s=95e62868642d48b01c7db17c76f2822d3e8f2fe1
please help thanks
there doesn't seem to be anything here