I'm looking for help with a project where I want my computer to automatically send a live video stream of its screen to a web app via WebRTC right when it powers on. I want this process to happen in the background without any manual input. The web app will be hosted for free online, and users can access the stream by entering a password. When the computer is turned off, I would like the website to show that the stream is offline. I'm a beginner in programming and rely on AI for assistance, so any guidance would be appreciated. I'm using Windows 10 and have heard that Python scripts could help with this, but I'm not sure how to get started. Thank you!
2 Answers
To run your script on startup without manual input, you can create a batch file that launches your Python script and then place it in the startup folder on Windows. Just remember, when working with streaming, you might run into firewall issues, so ensure your configurations allow for the stream to go through.
This sounds like a really interesting project! Since you're a beginner, I recommend starting with a simple Python script that utilizes tools like OpenCV for capturing the screen and Flask for hosting the web app. You'll need to delve into WebRTC to implement the streaming part. There are plenty of tutorials online that can guide you through the basics of setting up a stream. Don't worry; with some persistence, you'll figure it out!
Thanks for the tips! Do you have any specific resources or tutorials you recommend for starting with Flask or WebRTC?

That's a great point about the firewall! I hadn’t thought of that. I’ll make sure to check those settings once I get everything set up.