Closed SReject closed 4 years ago
Related to this, I wonder if a Scene and Visibility change occur when the browser source initializes. If so, then you can simple store the values on your end and read the current state from there (needs to be updated on further events).
You can get the current scene's name via window.obsstudio.getCurrentScene()
and the visibility using document.visibilityState
(the Page Visibility API).
Along with the js bindings that get called when a change occurs, it'd be handy to, arbitrarily, be able to get the current scene's name and BrowserSource visibility state: