Skip to content

docs: Fix ToggleRecordPause and SetVideoSettings - #1370

Open
clockblocker wants to merge 1 commit into
obsproject:masterfrom
clockblocker:docs/fix-protocol-doc-comments
Open

clockblocker wants to merge 1 commit into
obsproject:masterfrom
clockblocker:docs/fix-protocol-doc-comments

Conversation

@clockblocker

Copy link
Copy Markdown

Description

Document the missing outputPaused response field on ToggleRecordPause and correct the minimum value restriction for the resolution fields on SetVideoSettings from >= 1 to >= 8.

Motivation and Context

Two doc comments had drifted from the C++ request handlers:

  • RequestHandler::ToggleRecordPause (src/requesthandler/RequestHandler_Record.cpp) returns responseData["outputPaused"] (Boolean), but had no @responseField tag so protocol.md and protocol.json omitted its response field.
  • RequestHandler::SetVideoSettings (src/requesthandler/RequestHandler_Config.cpp) validates baseWidth, baseHeight, outputWidth, and outputHeight with ValidateOptionalNumber(..., 8, 4096), while the doc comments stated >= 1, <= 4096.

Generated files under docs/generated/ are left untouched for the Generate docs workflow to update on merge.

How Has This Been Tested?

Ran cd docs && ./build_docs.sh and verified the resulting diffs in docs/generated/protocol.json and docs/generated/protocol.md accurately reflect both changes.
Tested OS(s): macOS

Types of changes

  • Documentation change (a change to documentation pages)

Checklist:

  • I have read the Contributing Guidelines.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • My code is not on master or a release/* branch.
  • The code has been tested.
  • I have included updates to all appropriate documentation.

Document the `outputPaused` response field returned by
`ToggleRecordPause` in `RequestHandler_Record.cpp`, and update the
minimum resolution restrictions for `baseWidth`, `baseHeight`,
`outputWidth`, and `outputHeight` in `SetVideoSettings` from `>= 1` to
`>= 8` to match `ValidateOptionalNumber(..., 8, 4096)`.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant