Virtual background when tab inactive

Hi all,
We are trying to create a virtual background effect on our self-hosted enviorment and we have an issue with javascript setInterval/setTimout, they are being throttled by browser when tab is incative.

On jitsi-meet virtual background, WebWorker is used to setTimout for rendering frames but it seems that does not solve the issue on our code. WebWorker setTimeout is still being throttled.

Did anyone encounter this before? we’re trying to render frames at 30fps even when the tab is inactive.

Any help? @damencho @someone?