obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
777 stars 221 forks source link

Get Streaming and Visibility state #98

Closed kseptorl closed 6 years ago

kseptorl commented 6 years ago

I'd like to have an option to retrieve Streaming and Visibility state. Like the getCurrentScene: window.obsstudio.getVisibilityState(function(data) {console.log(data);}); window.obsstudio.getStreamingState(function(data) {console.log(data);});

Is it possible to add such functionality?

OsirisNL commented 6 years ago

I did add a option to get the status of the various outputs for OBS, see the README. Getting visibility state is a bit difficult, afaik it isn't possible to get the visibility state of a source in a scene.

kseptorl commented 6 years ago

Hey, Understood. Is there any plans to implement the possible functionality in the near future? It talking about visibility and streaming states.

It would be really great to have it :)

OsirisNL commented 6 years ago

With the option i added you can already do what you want to get the streaming status.

kseptorl commented 6 years ago

Just notices the update for the streaming state. Looks great! Thanks a lot!