obsproject / obs-browser

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

[js interface] properties of the object returned by .getStatus() are non-descript. #268

Closed SReject closed 1 year ago

SReject commented 3 years ago

Platform

Operating system and version: Windows 10 OBS Studio version: 26.1.1

Expected Behavior

The properties returned by obsstudio.getStatus() should be either numbers or strings indicating the status of Streaming, Recording, Replaying, and VirtualCam

Current Behavior

The current behavior is to return a boolean value indicating the overall status but such a value cannot account for the four possible states that streaming, recording and replaying can have: starting, started, stopping, stopped.

Suggested Fix

Instead of returning a boolean value, return an unsigned integer which value equates to the following: 0: stopped 1: starting 2: started 3: stopping

Warchamp7 commented 1 year ago

Closing as tthese bindings are not meant to be that granular in regards to output status.

As well, obs-websocket is now an official plugin and I believe can offer that level of granularity.