obs-browser
obs-browser copied to clipboard
[js interface] properties of the object returned by .getStatus() are non-descript.
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