Skip to content

Files

Latest commit

 

History

History
17 lines (16 loc) · 1.1 KB

134.md

File metadata and controls

17 lines (16 loc) · 1.1 KB
title date submitter number tags discussion
I want the ability to indicate not to throttle resources for tab when it goes in background
2020-02-27 23:24:10 UTC
Yogesh Jadhav
134
javascript
general

I am working on an application to enable screen sharing, video capturing, and audio recording. The application enables user to switch from one media option to another when recording is in progress. The functionality is implemented via capturing media streams and rendering it on Canvas. Everything works fine as long as the tab is in focus. The moment the tab loses the focus or the browser window goes in background, the tab resources get throttled and functions like requestAnimationFrame, setInterval, etc. don’t honor the requests.

The feature can be made declarative and implemented as a permission to continue execution of script and resource consumption in background. I believe this feature will open up many possibilities for a browser-based application and free end users from installing dozens of OS-specific applications.