obs-studio-node
obs-studio-node copied to clipboard
Add recording pause functions
Description
Add recording pause functions
// check the recording can pause or not
osn.NodeObs.OBS_service_canPauseRecording(): boolean
// pause or resume the recording, the result shows the success of the pause recording
osn.NodeObs.OBS_service_pauseRecording(shouldPause: boolean): boolean
// check the recording is paused or not
osn.NodeObs.OBS_service_isPausedRecording(): boolean
Motivation and Context
https://github.com/stream-labs/obs-studio-node/issues/904
How Has This Been Tested?
it's tested with the test_nodeobs_service.ts
file
macOS with Apple Silicon hardware, using the npm_config_arch=x64
config
Types of changes
New feature
Checklist:
- [x] The code has been tested.
- [ ] All commit messages are properly formatted and commits squashed where appropriate.
- [ ] I have included updates to all appropriate documentation.
Thank you for your contribution!