obs-studio-node icon indicating copy to clipboard operation
obs-studio-node copied to clipboard

Add recording pause functions

Open billyct opened this issue 2 years ago • 2 comments

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.

billyct avatar Aug 22 '22 14:08 billyct

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 22 '22 14:08 CLAassistant

Thank you for your contribution!

EddyGharbi avatar Aug 23 '22 01:08 EddyGharbi