I'm on Windows 10 and I use OBS to record the window of web browsers. I record online class sessions for later use, a lot of the times I have to switch windows or desktops, and when the web browser window is not in focus, after 10 seconds on Firefox, and immediately on Chromium based browsers, the web browser screen freezes (Firefox) or goes black blank (Chromium), so as to save resources rendering etc. I have tried a lot of things to stop this from happening:
- Changing Windows styles such as transparency and always on top. See: window styles and extended window styles
- Installing browser extension to change document objects like this:
document.visibilityState = 'visible'; document.hidden = falseto fool the tab into thinking it's still visible. See: always visible and always active window - Try different recording programs.
- Try different major web browsers (Chrome, Firefox, Edge, Opera, Brave).
- Toggling Hardware Acceleration.
- Toggling memory saving options, in settings or in about:config or chrome:flags and related extensions. See: the great suspender
I think it was first Chrome that adopted this behavior so I stopped using it, and moved over to Firefox, then Firefox adopted this, and I moved to the Edge browser, but the new updated Edge browser (which is based on Chromium) is also doing this. I also tried Opera and Brave.
Another idea would be to record the class inside OBS (browser source feature), but on most online sessions, my presence is only limited to one tab/browser, so I can't open a browser tab with OBS's browser to record the session. I need to be active on a browser, respond to the class etc. And I want to be able to record it's screen and freely move between desktops and windows. So as you can see, I cannot record the browser inside a virtual machine as I might have to share my host's desktop to the class. Installing my programs such as VS Code etc. inside a virtual machine and syncing files between would be too much of a hassle.
Similar issue has been discussed here on the OBS forums: Problem with window capture when the window is not focused