Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
Sending MediaStream from React to Flask server

So, I'm trying to implement an Application using Next.js (React) client and Flask for server. I have implemented for now a basic client and backend just like in this tutorial https://github.com/nim-f/webrtc-react.

My goal is to take input from users' webcams (the stream) and process it with some Computer Vision and Machine Learning techniques (using OpenCV and PyTorch in Python). It would be best if I could process users' stream on my Flask server such that I could use some existing modules from Pytorch.

On client:

const stream = await navigator.mediaDevices.getUserMedia({ video: true })
 
// Send the stream to server
const getProcessedStream = getStreamFromServer(stream)
// And then I'd pass it to client

My problem is that I cannot find a solution that would send stream or user video data from client to backend. I have only found this answer but I am not sure this is the approach I would like to take.

Is there a possibility to implement what I want or should I stick to what is proposed in that answer?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!