streamproc / MediaStreamRecorder

Cross browser audio/video/screen recording. It supports Chrome, Firefox, Opera and Microsoft Edge. It even works on Android browsers. It follows latest MediaRecorder API standards and provides similar APIs.
https://www.webrtc-experiment.com/msr/
MIT License
2.64k stars 562 forks source link

Recording slow when inactive tab (and solution) #62

Open RobertLowe opened 9 years ago

RobertLowe commented 9 years ago

Hey,

So, I noticed in Chrome (and probably firefox too), that when recording while the tab is inactive slows things down dramatically. This is because browser slow down inactive tabs to only fire setTimeout/setInterval once per second. I was able to work around this limit by using HackTimer.js which uses a webworker for timing events, things we're considerably improved when the tab was inactive. Just thought I'd mention the solution here.

Cheers

bpervan commented 8 years ago

Why don't you make a pull request with this workaround?