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

155
Views
Any way to send MediaStream or its frames to webworker?

I am working on a webrtc comminucation app, as part of this app I need to make changes (resize, change background, blue background ,...) to the webcam image before sending it to the subscribers ...

This is my solution for now :
1 - set stream to a in memory video element
2 - when play starts start a loop with settimeout to repeat No.3
3 - render video on canvas
4 - capture canvas stream

So far so good.
But when the tab is inactive/hidden/invisible the settimeout is throttled to 1 loop per second :( ...

Only other solution I have found is to use MediaStreamTrackProcessor , It works but lacks the browser support that I need (Firefox, Safari,...)

I tried using webworkers but can't sent a stream to worker and can't capture a stream inside a worker neither :(

So Any way to send MediaStream or its frames(continuously) to webworker ? Or Is there anyway (cross browser) to get frames from MediaStream continuously(so I won't need settimeout) ?

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!